Sign inSign up

daehyeok/passwd_parser

By daehyeok

•Updated almost 8 years ago

Simple /etc/passwd and /etc/group parser with GoLang

Image
0

365

daehyeok/passwd_parser repository overview

travisci codecov Docker Build Status goreportcard godoc

⁠Requirement

go 1.11.* passwd_parser will be work with previous versions of GoLang. but it is only tested with GoLang 1.11.

⁠Install

⁠Install with go get command

$ go get github.com/daehyeok/passwd_parser/

⁠Download pre-built binary

Downlaod lastes version from Github release page⁠

⁠Run with Docker

$ docker run -it --rm -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group daehyeok/passwd_parser

⁠Usage

Usage of passwd_parser
  -groups string
        Path for groups file (default "/etc/group")
  -help
        Print this usage message
  -logLevel string
        logging level [panic|fatal|error|warn|info|debug|trace] (default "error")
  -passwd string
        Path for passwd file (default "/etc/passwd")
  -pretty
        Print linted JSON string

⁠Comment

⁠Integratated CI/CD service/tools

TravisCI⁠ for continue build and test.

CodeCov⁠ for check code coverage

Goreleaser⁠ for deploying binary to Github release page.

Dockerhub⁠ for automatically build to the container.

GoDoc⁠ for documentation.

Tag summary

Content type

Image

Digest

Size

133.7 MB

Last updated

almost 8 years ago

docker pull daehyeok/passwd_parser