From 7c33b16b8cf8ab4ebbfd64c1a64de40a19f1248d Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 1 Jan 2019 19:42:22 +0100 Subject: [PATCH] Remove os.Stdout from shell.go completely --- shell.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell.go b/shell.go index 968caff..a79f353 100644 --- a/shell.go +++ b/shell.go @@ -4,7 +4,6 @@ import ( "bufio" "fmt" "io" - "os" "strings" ) @@ -27,7 +26,7 @@ func interactiveShell(reader io.Reader, writer io.Writer) { switch cmd { case "help", "?": - printHelp(os.Stdout) + printHelp(writer) case "exit", "quit": quitShell = true default: