aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/shell_liner.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-07 01:34:32 -0700
committerchrislu <chris.lu@gmail.com>2022-08-07 01:34:32 -0700
commit67814a5c79078e0fd6ca226501b7e48cb2e0558f (patch)
tree73df37af06bf6b51e4305d38894ab73dd7aada00 /weed/shell/shell_liner.go
parent1a4bf0dcb5852c62070fe9627b7e63c5d55bb460 (diff)
downloadseaweedfs-67814a5c79078e0fd6ca226501b7e48cb2e0558f.tar.xz
seaweedfs-67814a5c79078e0fd6ca226501b7e48cb2e0558f.zip
refactor and fix strings.Split
Diffstat (limited to 'weed/shell/shell_liner.go')
-rw-r--r--weed/shell/shell_liner.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index 21b549ad0..f8f4002fa 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -7,6 +7,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb"
+ "github.com/seaweedfs/seaweedfs/weed/util"
"github.com/seaweedfs/seaweedfs/weed/util/grace"
"golang.org/x/exp/slices"
"io"
@@ -100,7 +101,7 @@ https://cloud.seaweedfs.com/ui/%s
return
}
- for _, c := range strings.Split(cmd, ";") {
+ for _, c := range util.StringSplit(cmd, ";") {
if processEachCmd(reg, c, commandEnv) {
return
}