aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2019-03-17 17:28:29 -0700
committerChris Lu <chris.lu@uber.com>2019-03-17 17:28:29 -0700
commite48267e28731890c5b79d5baa8c91805f10a96f7 (patch)
treeff3827f4ae1a3b1884f67bac22aa4fd6f7056f7e
parent657dd2e6c93c02f46b10dfd43fb6e9b38c025ece (diff)
downloadseaweedfs-e48267e28731890c5b79d5baa8c91805f10a96f7.tar.xz
seaweedfs-e48267e28731890c5b79d5baa8c91805f10a96f7.zip
adjust output
-rw-r--r--weed/shell/command_collection_list.go2
-rw-r--r--weed/shell/shell_liner.go5
2 files changed, 5 insertions, 2 deletions
diff --git a/weed/shell/command_collection_list.go b/weed/shell/command_collection_list.go
index aab347d09..34a406d67 100644
--- a/weed/shell/command_collection_list.go
+++ b/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 {
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index e86220134..cd015fe85 100644
--- a/weed/shell/shell_liner.go
+++ b/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
}