diff options
| author | Alex Flint <[email protected]> | 2020-04-17 16:18:07 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-17 16:18:07 -0400 |
| commit | f78dec87696adddc8f5a70fb59b905694cf41509 (patch) | |
| tree | c252ad4cba86c55b5e47e2dac885aa81d261e372 | |
| parent | 854aa644a6897022cab3dc5974bc19f0367f9055 (diff) | |
| parent | 7a71aa1b202bdf986320ae80ebbfa34b5262c52b (diff) | |
Merge pull request #113 from alexflint/prettify-readme-header
move some stuff around in the readme header; add sourcegraph badge
| -rw-r--r-- | .github/banner.jpg | bin | 0 -> 10082 bytes | |||
| -rw-r--r-- | README.md | 34 |
2 files changed, 22 insertions, 12 deletions
diff --git a/.github/banner.jpg b/.github/banner.jpg Binary files differnew file mode 100644 index 0000000..6fbf95c --- /dev/null +++ b/.github/banner.jpg @@ -1,15 +1,19 @@ -[](https://godoc.org/github.com/alexflint/go-arg) -[](https://github.com/alexflint/go-arg/actions) -[](https://golangci.com/r/github.com/alexflint/go-arg) --[](https://coveralls.io/github/alexflint/go-arg?branch=master) -[](https://goreportcard.com/badge/github.com/alexflint/go-arg) - - -## Structured argument parsing for Go - -```shell -go get github.com/alexflint/go-arg -``` +<h1 align="center"> + <img src="./.github/banner.jpg" alt="go-arg" height="250px"> + <br> + go-arg + </br> +</h1> +<h4 align="center">Struct-based argument parsing for Go</h4> +<p align="center"> + <a href="https://sourcegraph.com/github.com/alexflint/go-arg?badge"><img src="https://sourcegraph.com/github.com/alexflint/go-arg/-/badge.svg" alt="Sourcegraph"></a> + <a href="https://pkg.go.dev/github.com/alexflint/go-arg"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square" alt="Documentation"></a> + <a href="https://github.com/alexflint/go-arg/actions"><img src="https://github.com/alexflint/go-arg/workflows/Go/badge.svg" alt="Build Status"></a> + <a href="https://coveralls.io/github/alexflint/go-arg?branch=master"><img src="https://coveralls.io/repos/alexflint/go-arg/badge.svg?branch=master&service=github" alt="Test Coverage"></a> + <!--<a href="https://codecov.io/gh/alexflint/go-arg"><img src="https://codecov.io/gh/alexflint/go-arg/branch/master/graph/badge.svg" alt="Coverage Status"></a>--> + <a href="https://goreportcard.com/report/github.com/alexflint/go-arg"><img src="https://goreportcard.com/badge/github.com/alexflint/go-arg" alt="Go Report Card"></a> +</p> +<br> Declare command line arguments for your program by defining a struct. @@ -27,6 +31,12 @@ $ ./example --foo=hello --bar hello true ``` +### Installation + +```shell +go get github.com/alexflint/go-arg +``` + ### Required arguments ```go |
