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]",
|
||||
Short: "Echo anything to the screen more times",
|
||||
Long: `an slightly useless command for testing.`,
|
||||
Run: func(cmd *Command, args []string) {
|
||||
tt = args
|
||||
},
|
||||
Run: timesRunner,
|
||||
}
|
||||
|
||||
func timesRunner(cmd *Command, args []string) {
|
||||
tt = args
|
||||
}
|
||||
|
||||
func flagInit() {
|
||||
|
Loading…
Reference in New Issue
Block a user