mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust output
This commit is contained in:
parent
657dd2e6c9
commit
e48267e287
|
@ -18,7 +18,7 @@ func (c *commandCollectionList) Name() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandCollectionList) Help() 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 {
|
func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer io.Writer) error {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
||||||
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -43,7 +44,9 @@ func RunShell(options ShellOptions) {
|
||||||
for {
|
for {
|
||||||
cmd, err := line.Prompt("> ")
|
cmd, err := line.Prompt("> ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err != io.EOF {
|
||||||
fmt.Printf("%v\n", err)
|
fmt.Printf("%v\n", err)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue