Browse Source

adjust output

pull/895/head
Chris Lu 6 years ago
parent
commit
e48267e287
  1. 2
      weed/shell/command_collection_list.go
  2. 5
      weed/shell/shell_liner.go

2
weed/shell/command_collection_list.go

@ -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 {

5
weed/shell/shell_liner.go

@ -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
}

Loading…
Cancel
Save