- Timestamp:
- Jun 24, 2020, 10:08:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/service.go
r335 r339 18 18 "io/ioutil" 19 19 "math/big" 20 "sort" 20 21 "strings" 21 22 "time" … … 124 125 } 125 126 return cmd.children.Get(params) 127 } 128 129 func (cmds serviceCommandSet) Names() []string { 130 l := make([]string, 0, len(cmds)) 131 for name := range cmds { 132 l = append(l, name) 133 } 134 sort.Strings(l) 135 return l 126 136 } 127 137 … … 197 207 198 208 func appendServiceCommandSetHelp(cmds serviceCommandSet, prefix []string, admin bool, l *[]string) { 199 for name, cmd := range cmds { 209 for _, name := range cmds.Names() { 210 cmd := cmds[name] 200 211 if cmd.admin && !admin { 201 212 continue
Note:
See TracChangeset
for help on using the changeset viewer.