diff --git a/shell.go b/shell.go index 52b9f92..20f5f79 100644 --- a/shell.go +++ b/shell.go @@ -64,7 +64,7 @@ func displayMessageDetails(fields []string, writer io.Writer, state shellState) func interactiveShell(reader io.Reader, writer io.Writer) { var state shellState = initialShellState() - fmt.Fprintln(writer, "Let's try an interactive shell!") + printHelp(writer) scanner := bufio.NewScanner(reader) for { fmt.Fprint(writer, "> ") @@ -104,11 +104,15 @@ func interactiveShell(reader io.Reader, writer io.Writer) { break } } - fmt.Fprintln(writer, "\nGoodbye!\n") } func printHelp(writer io.Writer) { fmt.Fprintln(writer, "Available commands:") - fmt.Fprintln(writer, "?, help: display this output") - fmt.Fprintln(writer, "exit: quit this program") + fmt.Fprintln(writer, "help\tdisplay this output") + fmt.Fprintln(writer, "exit\tquit this program") + fmt.Fprintln(writer, "reload\treload mailq") + fmt.Fprintln(writer, "sort\tdefine how to sort mailq before showing") + fmt.Fprintln(writer, "show\tshow mailq") + fmt.Fprintln(writer, "summary\tshow mailq summary") + fmt.Fprintln(writer, "") }