Merge pull request #6 from OneCloudInc/release-0.0.6

Release 0.0.6
This commit is contained in:
Brian Meyers 2019-02-22 15:52:12 -05:00 committed by GitHub
commit 01e6d77711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -144,8 +144,9 @@ var {{.cmdName}}Cmd = &cobra.Command{
Use: "{{.cmdName}}",
Short: "{{.cmdName}}",
Long: ` + "`" + `Description` + "`" + `,
Run: func(cmd *cobra.Command, args []string) {
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("{{.cmdName}} called, place the command logic here")
return nil
},
}
`

View file

@ -31,7 +31,8 @@ var testCmd = &cobra.Command{
Use: "test",
Short: "test",
Long: `Description`,
Run: func(cmd *cobra.Command, args []string) {
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("test called, place the command logic here")
return nil
},
}