aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2021-06-06 10:13:14 +0800
committerGitHub <noreply@github.com>2021-06-06 10:13:14 +0800
commit97ad3e9d027216d74132652d4d899c7fc7c33ab1 (patch)
tree1301bc441fa12b327c73085ae013219f298e2f39 /weed/shell
parentff26e646481a832ff6b75b5efa084935ed1a739b (diff)
parente6ba2f9c372f8f160003dac63d51b6dde0a512de (diff)
downloadseaweedfs-97ad3e9d027216d74132652d4d899c7fc7c33ab1.tar.xz
seaweedfs-97ad3e9d027216d74132652d4d899c7fc7c33ab1.zip
Merge pull request #79 from chrislusf/master
sync
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_fs_configure.go2
-rw-r--r--weed/shell/shell_liner.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 02cd7ac69..52fcae1c6 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -54,6 +54,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
ttl := fsConfigureCommand.String("ttl", "", "assign writes with this ttl")
diskType := fsConfigureCommand.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag")
fsync := fsConfigureCommand.Bool("fsync", false, "fsync for the writes")
+ isReadOnly := fsConfigureCommand.Bool("readOnly", false, "disable writes")
volumeGrowthCount := fsConfigureCommand.Int("volumeGrowthCount", 0, "the number of physical volumes to add if no writable volumes")
isDelete := fsConfigureCommand.Bool("delete", false, "delete the configuration by locationPrefix")
apply := fsConfigureCommand.Bool("apply", false, "update and apply filer configuration")
@@ -84,6 +85,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
Fsync: *fsync,
DiskType: *diskType,
VolumeGrowthCount: uint32(*volumeGrowthCount),
+ ReadOnly: *isReadOnly,
}
// check collection
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index 1dd611ca5..38b74bc54 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -31,6 +31,7 @@ func RunShell(options ShellOptions) {
})
line.SetCtrlCAborts(true)
+ line.SetTabCompletionStyle(liner.TabPrints)
setCompletionHandler()
loadHistory()