Improve cmd

This commit is contained in:
世界
2022-08-13 18:36:49 +08:00
parent 529cfe2d9a
commit c8399a297e
6 changed files with 56 additions and 41 deletions

View File

@@ -21,6 +21,7 @@ var nameOnly bool
func init() {
commandVersion.Flags().BoolVarP(&nameOnly, "name", "n", false, "print version name only")
mainCommand.AddCommand(commandVersion)
}
func printVersion(cmd *cobra.Command, args []string) {