improve commands command output

pull/5/head
Jordan Orelli 10 years ago
parent d68f342040
commit f00a030039

@ -99,9 +99,12 @@ var commandsCommand = &Command{
names = append(names, name) names = append(names, name)
} }
sort.Strings(names) sort.Strings(names)
fmt.Fprintln(conn, "--------------------------------------------------------------------------------")
for _, name := range names { for _, name := range names {
fmt.Fprintln(conn, name) cmd := commandRegistry[name]
fmt.Fprintf(conn, "%-16s %s\n", name, cmd.help)
} }
fmt.Fprintln(conn, "--------------------------------------------------------------------------------")
}, },
} }

Loading…
Cancel
Save