diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-12 18:48:01 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-12 18:48:01 -0800 |
| commit | 90c507761084821692fcbd25a0a729ce4bbc4806 (patch) | |
| tree | 76397a98ec40d7d251095264abd0c62000de9ab9 | |
| parent | 5cd9c9e6421215f64cc84090f4384cdec6190b85 (diff) | |
| download | seaweedfs-90c507761084821692fcbd25a0a729ce4bbc4806.tar.xz seaweedfs-90c507761084821692fcbd25a0a729ce4bbc4806.zip | |
rename "weed watch" to "weed filer.meta.tail"
| -rw-r--r-- | weed/command/command.go | 2 | ||||
| -rw-r--r-- | weed/command/filer_meta_tail.go (renamed from weed/command/watch.go) | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/weed/command/command.go b/weed/command/command.go index 8f9cec087..3fa52c922 100644 --- a/weed/command/command.go +++ b/weed/command/command.go @@ -16,6 +16,7 @@ var Commands = []*Command{ cmdExport, cmdFiler, cmdFilerCat, + cmdFilerMetaTail, cmdFilerReplicate, cmdFilerSynchronize, cmdFix, @@ -26,7 +27,6 @@ var Commands = []*Command{ cmdScaffold, cmdServer, cmdShell, - cmdWatch, cmdUpload, cmdVersion, cmdVolume, diff --git a/weed/command/watch.go b/weed/command/filer_meta_tail.go index 8aad22019..af56c5394 100644 --- a/weed/command/watch.go +++ b/weed/command/filer_meta_tail.go @@ -15,11 +15,11 @@ import ( ) func init() { - cmdWatch.Run = runWatch // break init cycle + cmdFilerMetaTail.Run = runFilerMetaTail // break init cycle } -var cmdWatch = &Command{ - UsageLine: "watch [-filer=localhost:8888] [-target=/]", +var cmdFilerMetaTail = &Command{ + UsageLine: "filer.meta.tail [-filer=localhost:8888] [-target=/]", Short: "see recent changes on a filer", Long: `See recent changes on a filer. @@ -27,13 +27,13 @@ var cmdWatch = &Command{ } var ( - watchFiler = cmdWatch.Flag.String("filer", "localhost:8888", "filer hostname:port") - watchTarget = cmdWatch.Flag.String("pathPrefix", "/", "path to a folder or file, or common prefix for the folders or files on filer") - watchStart = cmdWatch.Flag.Duration("timeAgo", 0, "start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"") - watchPattern = cmdWatch.Flag.String("pattern", "", "full path or just filename pattern, ex: \"/home/?opher\", \"*.pdf\", see https://golang.org/pkg/path/filepath/#Match ") + watchFiler = cmdFilerMetaTail.Flag.String("filer", "localhost:8888", "filer hostname:port") + watchTarget = cmdFilerMetaTail.Flag.String("pathPrefix", "/", "path to a folder or file, or common prefix for the folders or files on filer") + watchStart = cmdFilerMetaTail.Flag.Duration("timeAgo", 0, "start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"") + watchPattern = cmdFilerMetaTail.Flag.String("pattern", "", "full path or just filename pattern, ex: \"/home/?opher\", \"*.pdf\", see https://golang.org/pkg/path/filepath/#Match ") ) -func runWatch(cmd *Command, args []string) bool { +func runFilerMetaTail(cmd *Command, args []string) bool { grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client") |
