package cmd import ( "fmt" "github.com/spf13/cobra" ) func init() { rootCmd.AddCommand(versionCmd) } var versionCmd = &cobra.Command{ Use: "version", Short: "Print the version number of kilt", Long: `All software has versions. This is kilt's`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("kilt the process killer v0.1 -- HEAD") }, }