We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d140ae9 commit 480cfa7Copy full SHA for 480cfa7
internal/options.go
@@ -2,6 +2,7 @@ package internal
2
3
import (
4
"fmt"
5
+ "sort"
6
7
"github.com/docopt/docopt-go"
8
)
@@ -72,8 +73,15 @@ func (opts Options) Handlers(p *Parseable) []OptionHandler {
72
73
}
74
75
parser := (*p).(*parser)
- for taskName := range parser.Tasks {
76
- fmt.Println(taskName)
+ tasks := make([]string, 0, len(parser.Tasks))
77
+
78
+ for k := range parser.Tasks {
79
+ tasks = append(tasks, k)
80
+ }
81
+ sort.Strings(tasks)
82
83
+ for _, task := range tasks {
84
+ fmt.Println(task)
85
86
87
return 0, nil
0 commit comments