diff --git a/README.md b/README.md index 79d33b6..9322301 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # CLI -[![License](https://img.shields.io/github/license/FollowTheProcess/cli)](https://github.com/FollowTheProcess/cli) -[![Go Reference](https://pkg.go.dev/badge/github.com/FollowTheProcess/cli.svg)](https://pkg.go.dev/github.com/FollowTheProcess/cli) -[![Go Report Card](https://goreportcard.com/badge/github.com/FollowTheProcess/cli)](https://goreportcard.com/report/github.com/FollowTheProcess/cli) -[![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/cli?logo=github&sort=semver)](https://github.com/FollowTheProcess/cli) -[![CI](https://github.com/FollowTheProcess/cli/workflows/CI/badge.svg)](https://github.com/FollowTheProcess/cli/actions?query=workflow%3ACI) +[![License](https://img.shields.io/github/license/FollowTheProcess/cli)](https://followtheprocess.codes/cli) +[![Go Reference](https://pkg.go.dev/badge/followtheprocess.codes/cli.svg)](https://pkg.go.dev/followtheprocess.codes/cli) +[![Go Report Card](https://goreportcard.com/badge/followtheprocess.codes/cli)](https://goreportcard.com/report/followtheprocess.codes/cli) +[![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/cli?logo=github&sort=semver)](https://followtheprocess.codes/cli) +[![CI](https://followtheprocess.codes/cli/workflows/CI/badge.svg)](https://followtheprocess.codes/cli/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/FollowTheProcess/cli/branch/main/graph/badge.svg)](https://codecov.io/gh/FollowTheProcess/cli) Tiny, simple, but powerful CLI framework for modern Go 🚀

-demo +demo

> [!WARNING] @@ -40,7 +40,7 @@ Tiny, simple, but powerful CLI framework for modern Go 🚀 ## Installation ```shell -go get github.com/FollowTheProcess/cli@latest +go get followtheprocess.codes/cli@latest ``` ## Quickstart @@ -52,7 +52,7 @@ import ( "fmt" "os" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" ) func main() { @@ -95,10 +95,10 @@ func runQuickstart(count *int) func(cmd *cli.Command, args []string) error { Will get you the following: -![quickstart](https://github.com/FollowTheProcess/cli/raw/main/docs/img/quickstart.gif) +![quickstart](https://followtheprocess.codes/cli/raw/main/docs/img/quickstart.gif) > [!TIP] -> See usage section below and more examples under [`./examples`](https://github.com/FollowTheProcess/cli/tree/main/examples) +> See usage section below and more examples under [`./examples`](https://followtheprocess.codes/cli/tree/main/examples) ## Usage @@ -119,7 +119,7 @@ cmd, err := cli.New( ``` > [!TIP] -> The command can be customised by applying any number of [functional options] for setting the help text, describing the arguments or flags it takes, adding subcommands etc. see +> The command can be customised by applying any number of [functional options] for setting the help text, describing the arguments or flags it takes, adding subcommands etc. see ### Sub Commands diff --git a/Taskfile.yml b/Taskfile.yml index 69d9548..96347e1 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,7 +4,7 @@ version: "3" vars: COV_DATA: coverage.out - PACKAGE: github.com/FollowTheProcess/cli + PACKAGE: followtheprocess.codes/cli tasks: default: diff --git a/args.go b/args.go index 74f8581..c33b577 100644 --- a/args.go +++ b/args.go @@ -1,4 +1,4 @@ -package cli +package cli // import "followtheprocess.codes/cli" import ( "fmt" diff --git a/args_test.go b/args_test.go index 6f35be6..fe2b07f 100644 --- a/args_test.go +++ b/args_test.go @@ -6,7 +6,7 @@ import ( "slices" "testing" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" "github.com/FollowTheProcess/test" ) diff --git a/command.go b/command.go index 5d0cf7e..fb72e27 100644 --- a/command.go +++ b/command.go @@ -1,5 +1,5 @@ // Package cli provides a clean, minimal and simple mechanism for constructing CLI commands. -package cli +package cli // import "followtheprocess.codes/cli" import ( "errors" @@ -10,9 +10,9 @@ import ( "strings" "unicode/utf8" - "github.com/FollowTheProcess/cli/internal/colour" - "github.com/FollowTheProcess/cli/internal/flag" - "github.com/FollowTheProcess/cli/internal/table" + "followtheprocess.codes/cli/internal/colour" + "followtheprocess.codes/cli/internal/flag" + "followtheprocess.codes/cli/internal/table" ) const ( diff --git a/command_test.go b/command_test.go index 4f50442..3811a1b 100644 --- a/command_test.go +++ b/command_test.go @@ -10,7 +10,7 @@ import ( "slices" "testing" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" "github.com/FollowTheProcess/snapshot" "github.com/FollowTheProcess/test" ) diff --git a/examples/README.md b/examples/README.md index 5fa53c4..5dd9821 100644 --- a/examples/README.md +++ b/examples/README.md @@ -37,5 +37,5 @@ A CLI with named positional arguments that may or may not have default values. S - Docker - Cargo -[quickstart]: +[quickstart]: [freeze]: diff --git a/examples/cover/main.go b/examples/cover/main.go index d6b844d..862e967 100644 --- a/examples/cover/main.go +++ b/examples/cover/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" ) func main() { diff --git a/examples/namedargs/main.go b/examples/namedargs/main.go index e2840d7..e336088 100644 --- a/examples/namedargs/main.go +++ b/examples/namedargs/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" ) func main() { diff --git a/examples/quickstart/main.go b/examples/quickstart/main.go index 36e4edd..e4e8438 100644 --- a/examples/quickstart/main.go +++ b/examples/quickstart/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" ) func main() { diff --git a/examples/subcommands/cli.go b/examples/subcommands/cli.go index a7e28ac..769cdaa 100644 --- a/examples/subcommands/cli.go +++ b/examples/subcommands/cli.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/FollowTheProcess/cli" + "followtheprocess.codes/cli" ) func BuildCLI() (*cli.Command, error) { diff --git a/go.mod b/go.mod index b63ac84..de408bc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/FollowTheProcess/cli +module followtheprocess.codes/cli go 1.24 diff --git a/internal/flag/flag_test.go b/internal/flag/flag_test.go index 8d3c2d1..e0d9fe8 100644 --- a/internal/flag/flag_test.go +++ b/internal/flag/flag_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/FollowTheProcess/cli/internal/flag" + "followtheprocess.codes/cli/internal/flag" "github.com/FollowTheProcess/test" ) diff --git a/internal/flag/set.go b/internal/flag/set.go index a6e9cba..7cc9fa4 100644 --- a/internal/flag/set.go +++ b/internal/flag/set.go @@ -7,8 +7,8 @@ import ( "slices" "strings" - "github.com/FollowTheProcess/cli/internal/colour" - "github.com/FollowTheProcess/cli/internal/table" + "followtheprocess.codes/cli/internal/colour" + "followtheprocess.codes/cli/internal/table" ) // usageBufferSize is sufficient to hold most commands flag usage text. diff --git a/internal/flag/set_test.go b/internal/flag/set_test.go index 8e4cab7..0b3bbbd 100644 --- a/internal/flag/set_test.go +++ b/internal/flag/set_test.go @@ -6,8 +6,8 @@ import ( "slices" "testing" - "github.com/FollowTheProcess/cli/internal/colour" - "github.com/FollowTheProcess/cli/internal/flag" + "followtheprocess.codes/cli/internal/colour" + "followtheprocess.codes/cli/internal/flag" "github.com/FollowTheProcess/snapshot" "github.com/FollowTheProcess/test" ) diff --git a/internal/table/table_test.go b/internal/table/table_test.go index c7e6990..344e485 100644 --- a/internal/table/table_test.go +++ b/internal/table/table_test.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/FollowTheProcess/cli/internal/table" + "followtheprocess.codes/cli/internal/table" "github.com/FollowTheProcess/snapshot" "github.com/FollowTheProcess/test" ) diff --git a/option.go b/option.go index 77dcaa2..cca6167 100644 --- a/option.go +++ b/option.go @@ -1,4 +1,4 @@ -package cli +package cli // import "followtheprocess.codes/cli" import ( "errors" @@ -7,8 +7,8 @@ import ( "slices" "strings" - "github.com/FollowTheProcess/cli/internal/colour" - "github.com/FollowTheProcess/cli/internal/flag" + "followtheprocess.codes/cli/internal/colour" + "followtheprocess.codes/cli/internal/flag" ) // NoShortHand should be passed as the "short" argument to [Flag] if the desired flag