Remove os.Stdout from shell.go completely
This commit is contained in:
parent
f7bb218403
commit
7c33b16b8c
3
shell.go
3
shell.go
@ -4,7 +4,6 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -27,7 +26,7 @@ func interactiveShell(reader io.Reader, writer io.Writer) {
|
|||||||
|
|
||||||
switch cmd {
|
switch cmd {
|
||||||
case "help", "?":
|
case "help", "?":
|
||||||
printHelp(os.Stdout)
|
printHelp(writer)
|
||||||
case "exit", "quit":
|
case "exit", "quit":
|
||||||
quitShell = true
|
quitShell = true
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user