diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-14 00:55:03 -0800 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-11-14 00:55:03 -0800 |
| commit | 9ce09bbc1f3847458a36ac9ffda0e1416ca7ee23 (patch) | |
| tree | 3504305a5a6552eeaaef759991401c999b25c73c /README.md | |
| parent | Clarify godoc comments and provide more examples (diff) | |
| download | subcmd-9ce09bbc1f3847458a36ac9ffda0e1416ca7ee23.zip | |
Migrate from sourcehut to git.eugenetriguba.com
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,16 +1,15 @@ # subcmd -[](https://godoc.org/git.sr.ht/~eugenetriguba/subcmd) +[](https://pkg.go.dev/git.eugenetriguba.com/subcmd)  -[](https://builds.sr.ht/~eugenetriguba/subcmd/commits/main?) A simple and flexible subcommand framework for Go, built on top of the standard library's `flag` package. ## Why subcmd? There are more full-featured CLI libraries for Go, like -[cobra](https://github.com/spf13/cobra). If you need complex features, use one -of those. +[cobra](https://github.com/spf13/cobra). If you need more complex features, +those would be a better solution. subcmd is a lightweight wrapper around Go's standard library `flag` package. The entire implementation is a single file with zero production dependencies. @@ -21,7 +20,7 @@ listing commands, and command groups for organization. Because it wraps ## Installation ```bash -go get git.sr.ht/~eugenetriguba/subcmd +go get git.eugenetriguba.com/subcmd ``` ## Example @@ -35,7 +34,7 @@ import ( "fmt" "os" - "git.sr.ht/~eugenetriguba/subcmd" + "git.eugenetriguba.com/subcmd" ) type greetCmd struct { @@ -69,5 +68,5 @@ Hello, Alice! ## Documentation -See the [GoDoc documentation](https://godoc.org/git.sr.ht/~eugenetriguba/subcmd) +See the [GoDoc documentation](https://pkg.go.dev/git.eugenetriguba.com/subcmd) for full documentation. |