adjust output

This commit is contained in:
Chris Lu 2019-03-17 17:28:29 -07:00
parent 657dd2e6c9
commit e48267e287
2 changed files with 5 additions and 2 deletions

View file

@ -18,7 +18,7 @@ func (c *commandCollectionList) Name() string {
}
func (c *commandCollectionList) Help() string {
return "\t\t # list all collections"
return "# list all collections"
}
func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer io.Writer) error {

View file

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/chrislusf/seaweedfs/weed/wdclient"
"io"
"os"
"regexp"
"strings"
@ -43,7 +44,9 @@ func RunShell(options ShellOptions) {
for {
cmd, err := line.Prompt("> ")
if err != nil {
fmt.Printf("%v\n", err)
if err != io.EOF {
fmt.Printf("%v\n", err)
}
return
}