aboutsummaryrefslogtreecommitdiff
path: root/weed/command/shell.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-03 00:20:00 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-03 00:20:00 -0700
commit715a38da1e4fce05631f230ccf09ce92c99a4fd4 (patch)
treedc443bbe30b2178f24c67c19ef732013b8cabd0f /weed/command/shell.go
parent20dcb44077bcb8164b8351ee506af8385e8fd6ef (diff)
downloadseaweedfs-715a38da1e4fce05631f230ccf09ce92c99a4fd4.tar.xz
seaweedfs-715a38da1e4fce05631f230ccf09ce92c99a4fd4.zip
weed shell: add fs.cd, fs.pwd to change to a directory and print current directory
Diffstat (limited to 'weed/command/shell.go')
-rw-r--r--weed/command/shell.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/command/shell.go b/weed/command/shell.go
index 1c3ce5f10..3216d5d48 100644
--- a/weed/command/shell.go
+++ b/weed/command/shell.go
@@ -31,6 +31,10 @@ func runShell(command *Command, args []string) bool {
weed_server.LoadConfiguration("security", false)
shellOptions.GrpcDialOption = security.LoadClientTLS(viper.Sub("grpc"), "client")
+ shellOptions.FilerHost = "localhost"
+ shellOptions.FilerPort = 8888
+ shellOptions.Directory = ""
+
shell.RunShell(shellOptions)
return true