From f00a0300391d5dfa2e4d6c5319e4d0bff23c164c Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sat, 8 Nov 2014 17:49:41 -0500 Subject: [PATCH] improve commands command output --- commands.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index bd21444..c2df859 100644 --- a/commands.go +++ b/commands.go @@ -99,9 +99,12 @@ var commandsCommand = &Command{ names = append(names, name) } sort.Strings(names) + fmt.Fprintln(conn, "--------------------------------------------------------------------------------") for _, name := range names { - fmt.Fprintln(conn, name) + cmd := commandRegistry[name] + fmt.Fprintf(conn, "%-16s %s\n", name, cmd.help) } + fmt.Fprintln(conn, "--------------------------------------------------------------------------------") }, }