mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
auto add prefix "fs."
This commit is contained in:
parent
a875f67a08
commit
d83e648c0b
|
@ -6,9 +6,8 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/peterh/liner"
|
||||
)
|
||||
|
@ -66,7 +65,7 @@ func RunShell(options ShellOptions) {
|
|||
} else {
|
||||
foundCommand := false
|
||||
for _, c := range Commands {
|
||||
if c.Name() == cmd {
|
||||
if c.Name() == cmd || c.Name() == "fs."+cmd {
|
||||
if err := c.Do(args, commandEnv, os.Stdout); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue