aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/commands.go4
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))