Cleaning up program UX

- Remove toggle flag
- Update version message
- Update README.md with new changes
This commit is contained in:
Kris Nova
2017-12-09 06:56:16 -06:00
parent ce1cb7f055
commit 9e31a727a6
3 changed files with 4 additions and 10 deletions

View File

@@ -24,13 +24,8 @@ import (
// 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: "Show the version of the program",
Long: `Show the version of the program`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Version: %s, Built: %s", version.Version, version.BuildTime)
},