Skip to content

Commit bd38b35

Browse files
appleapple
authored andcommitted
bbx: 修改version 子命令的命令帮助信息
1 parent a1df65f commit bd38b35

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cmd/version.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ const version = "v1.0.2"
1111
// versionCmd represents the version command
1212
var versionCmd = &cobra.Command{
1313
Use: "version",
14-
Short: "A brief description of your command",
15-
Long: `A longer description that spans multiple lines and likely contains examples
16-
and usage of using your command. For example:
17-
18-
Cobra is a CLI library for Go that empowers applications.
19-
This application is a tool to generate the needed files
20-
to quickly create a Cobra application.`,
14+
Short: "Print bbx version",
15+
Long: `Print bbx version`,
2116
Run: func(cmd *cobra.Command, args []string) {
2217
fmt.Println(version)
2318
},

0 commit comments

Comments
 (0)