From 9ce09bbc1f3847458a36ac9ffda0e1416ca7ee23 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 14 Nov 2026 00:55:03 -0800 Subject: Migrate from sourcehut to git.eugenetriguba.com --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'README.md') 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. -- cgit v1.2.3