Adding a separate command as a run value.
This commit is contained in:
parent
3d8285f415
commit
1be06e4e1a
@ -35,9 +35,11 @@ var cmdTimes = &Command{
|
|||||||
Use: "times [string to echo]",
|
Use: "times [string to echo]",
|
||||||
Short: "Echo anything to the screen more times",
|
Short: "Echo anything to the screen more times",
|
||||||
Long: `an slightly useless command for testing.`,
|
Long: `an slightly useless command for testing.`,
|
||||||
Run: func(cmd *Command, args []string) {
|
Run: timesRunner,
|
||||||
tt = args
|
}
|
||||||
},
|
|
||||||
|
func timesRunner(cmd *Command, args []string) {
|
||||||
|
tt = args
|
||||||
}
|
}
|
||||||
|
|
||||||
func flagInit() {
|
func flagInit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user