Skip to content

Commit

Permalink
bbx: 修改version 子命令的命令帮助信息
Browse files Browse the repository at this point in the history
  • Loading branch information
apple authored and apple committed Apr 11, 2024
1 parent a1df65f commit bd38b35
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ const version = "v1.0.2"
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Short: "Print bbx version",
Long: `Print bbx version`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version)
},
Expand Down

0 comments on commit bd38b35

Please # to comment.