aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 6 insertions, 7 deletions
diff --git a/README.md b/README.md
index 329f124..75b58a9 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,15 @@
# subcmd
-[![GoDoc](https://godoc.org/git.sr.ht/~eugenetriguba/subcmd?status.svg)](https://godoc.org/git.sr.ht/~eugenetriguba/subcmd)
+[![GoDoc](https://pkg.go.dev/badge/git.eugenetriguba.com/subcmd.svg)](https://pkg.go.dev/git.eugenetriguba.com/subcmd)
![Version](https://img.shields.io/badge/version-0.5.0-blue)
-[![Build Status](https://builds.sr.ht/~eugenetriguba/subcmd/commits/main.svg)](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.