weed shell: add fs.cd, fs.pwd to change to a directory and print current directory

This commit is contained in:
Chris Lu
2019-04-03 00:20:00 -07:00
parent 20dcb44077
commit 715a38da1e
6 changed files with 189 additions and 25 deletions

View File

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