chore: add goctl command help (#1578)

This commit is contained in:
Kevin Wan 2022-02-26 17:02:04 +08:00 committed by GitHub
parent 8131a0e777
commit 66f10bb5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ const (
BashCompletionFlag = `generate-goctl-completion`
defaultCompletionFilename = "goctl_autocomplete"
)
const (
magic = 1 << iota
flagZsh

View File

@ -49,11 +49,12 @@ var commands = []cli.Command{
Action: upgrade.Upgrade,
},
{
Name: "env",
Name: "env",
Usage: "check or edit goctl environment",
Flags: []cli.Flag{
cli.StringSliceFlag{
Name: "write, w",
Usage: "edit goctl env",
Usage: "edit goctl environment",
},
},
Subcommands: []cli.Command{