diff --git a/Makefile b/Makefile index 101fda0..a1c6468 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,6 @@ test: go test ./... build: - go build cmd/cliapp/aznum2words-cli.go + go build cmd/aznum2words-cli/aznum2words-cli.go .DEFAULT_GOAL := build \ No newline at end of file diff --git a/README.md b/README.md index 4bdac44..4e2e6b9 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ beş milyard altı yüz on bir milyon bir yüz on üç min iki yüz on ```shell // installs the binaries into $GOPATH/bin -go install github.com/egasimov/aznum2words/cmd/cliapp/aznum2words-cli@latest +go install github.com/egasimov/aznum2words/cmd/aznum2words-cli@latest ``` ## CLI kimi istifadə qaydası | Guideline for using as CLI app diff --git a/cmd/cliapp/aznum2words-cli.go b/cmd/aznum2words-cli/aznum2words-cli.go similarity index 63% rename from cmd/cliapp/aznum2words-cli.go rename to cmd/aznum2words-cli/aznum2words-cli.go index 9355e9c..8bf6035 100644 --- a/cmd/cliapp/aznum2words-cli.go +++ b/cmd/aznum2words-cli/aznum2words-cli.go @@ -4,7 +4,7 @@ Copyright © 2023 NAME HERE package main import ( - "github.com/egasimov/aznum2words/cmd/cliapp/commands" + "github.com/egasimov/aznum2words/cmd/aznum2words-cli/commands" ) func main() { diff --git a/cmd/cliapp/aznum2words-cli_test.go b/cmd/aznum2words-cli/aznum2words-cli_test.go similarity index 100% rename from cmd/cliapp/aznum2words-cli_test.go rename to cmd/aznum2words-cli/aznum2words-cli_test.go diff --git a/cmd/cliapp/commands/root.go b/cmd/aznum2words-cli/commands/root.go similarity index 96% rename from cmd/cliapp/commands/root.go rename to cmd/aznum2words-cli/commands/root.go index 71a938a..ab74bbb 100644 --- a/cmd/cliapp/commands/root.go +++ b/cmd/aznum2words-cli/commands/root.go @@ -12,7 +12,7 @@ import ( "github.com/spf13/cobra" ) -// rootCmd represents the base command when called without any cliapp +// rootCmd represents the base command when called without any aznum2words-cli var rootCmd = &cobra.Command{ Use: "aznum2words-cli [arg]", Short: "A command line tool used for converting numbers into words in Azerbaijani language",