Skip to content

Commit

Permalink
Replace cobra with cobra-cli (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitou-1412 committed Aug 19, 2023
1 parent b43c2d0 commit 1d43487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/add.go
Expand Up @@ -29,14 +29,14 @@ var (
Use: "add [command name]",
Aliases: []string{"command"},
Short: "Add a command to a Cobra Application",
Long: `Add (cobra add) will create a new command, with a license and
Long: `Add (cobra-cli add) will create a new command, with a license and
the appropriate structure for a Cobra-based CLI application,
and register it to its parent (default rootCmd).
If you want your command to be public, pass in the command name
with an initial uppercase letter.
Example: cobra add server -> resulting in a new cmd/server.go`,
Example: cobra-cli add server -> resulting in a new cmd/server.go`,
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
var comps []string
if len(args) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Expand Up @@ -31,7 +31,7 @@ var (
Use: "init [path]",
Aliases: []string{"initialize", "initialise", "create"},
Short: "Initialize a Cobra Application",
Long: `Initialize (cobra init) will create a new application, with a license
Long: `Initialize (cobra-cli init) will create a new application, with a license
and the appropriate structure for a Cobra-based CLI application.
Cobra init must be run inside of a go module (please run "go mod init <MODNAME>" first)
Expand Down

0 comments on commit 1d43487

Please sign in to comment.