Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SubCmd = &cobra.Command{ Use: "version", Short: "输出版本 (Print the version number)", Long: "输出版本 (Print the version number)", Run: func(cmd *cobra.Command, args []string) { data := [][]string{ {version}, } var header = []string{"当前版本 (Version)"} var td = Print.Table{ Header: header, Body: data} td.Print("") }, }
SubCmd is core cobra.Command of subcommand
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.