aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/shell_liner.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2019-03-19 21:58:00 -0700
committerChris Lu <chris.lu@uber.com>2019-03-19 21:58:00 -0700
commitf3d316a846473fe8f33a90172291608d764a264d (patch)
tree9503887b65a6c0681a8dc50e5c35fd0c83250c97 /weed/shell/shell_liner.go
parentcea5c53bf7943f7735d74c1e9f568ba633474e5d (diff)
downloadseaweedfs-f3d316a846473fe8f33a90172291608d764a264d.tar.xz
seaweedfs-f3d316a846473fe8f33a90172291608d764a264d.zip
weed shell: adding file system disk usage fs.du
fix https://github.com/chrislusf/seaweedfs/issues/889 echo "fs.du http://localhost:8888/some/path" | weed shell
Diffstat (limited to 'weed/shell/shell_liner.go')
-rw-r--r--weed/shell/shell_liner.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index cd015fe85..096532fdf 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -36,6 +36,7 @@ func RunShell(options ShellOptions) {
env: make(map[string]string),
masterClient: wdclient.NewMasterClient(context.Background(),
options.GrpcDialOption, "shell", strings.Split(*options.Masters, ",")),
+ option: options,
}
go commandEnv.masterClient.KeepConnectedToMaster()