diff options
Diffstat (limited to 'commands/commands.go')
-rw-r--r-- | commands/commands.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/commands.go b/commands/commands.go index a30c38a5..bd8cb14d 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -27,9 +27,7 @@ func runCommands(cmd *cobra.Command, args []string) error { cmd := queue[0] queue = queue[1:] allCmds = append(allCmds, cmd) - for _, c := range cmd.Commands() { - queue = append(queue, c) - } + queue = append(queue, cmd.Commands()...) } sort.Sort(commandSorterByName(allCmds)) |