mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
Merge tag '0.0.6' into develop
Hotfix 0.0.6
This commit is contained in:
commit
12d6bd86cf
2 changed files with 4 additions and 2 deletions
|
@ -144,8 +144,9 @@ var {{.cmdName}}Cmd = &cobra.Command{
|
||||||
Use: "{{.cmdName}}",
|
Use: "{{.cmdName}}",
|
||||||
Short: "{{.cmdName}}",
|
Short: "{{.cmdName}}",
|
||||||
Long: ` + "`" + `Description` + "`" + `,
|
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")
|
fmt.Println("{{.cmdName}} called, place the command logic here")
|
||||||
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
3
cobra/cmd/testdata/test.go.golden
vendored
3
cobra/cmd/testdata/test.go.golden
vendored
|
@ -31,7 +31,8 @@ var testCmd = &cobra.Command{
|
||||||
Use: "test",
|
Use: "test",
|
||||||
Short: "test",
|
Short: "test",
|
||||||
Long: `Description`,
|
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")
|
fmt.Println("test called, place the command logic here")
|
||||||
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue