Skip to content

Commit cb9bcc5

Browse files
committed
Show basic prompt
1 parent 0671f10 commit cb9bcc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/entry.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func Start(hostPort string, password string, in io.Reader, out io.Writer) {
3434
defer remoteConsole.Close()
3535

3636
scanner := bufio.NewScanner(in)
37+
out.Write([]byte("> "))
3738
for scanner.Scan() {
3839
cmd := scanner.Text()
3940
reqId, err := remoteConsole.Write(cmd)
@@ -56,6 +57,7 @@ func Start(hostPort string, password string, in io.Reader, out io.Writer) {
5657
}
5758

5859
fmt.Fprintln(out, resp)
60+
out.Write([]byte("> "))
5961
}
6062

6163
if err := scanner.Err(); err != nil {

0 commit comments

Comments
 (0)