File tree 8 files changed +9
-8
lines changed
8 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ func main() {
128
128
// register shell commands
129
129
for _ , cmd := range RegisteredCmds {
130
130
handler := cmd .Handler ()
131
- completer := cmd .Completer ()
131
+ // completer := cmd.Completer()
132
132
longhelp := cmd .LongHelp ()
133
133
shell .AddCmd (& ishell.Cmd {
134
134
Name : cmd .Name (),
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func (c BackupCmd) Handler() func(ctx context.Context) {
56
56
utils .OutputWithElapse (func () error {
57
57
ic := utils .ExtractIshellContext (ctx )
58
58
if len (ic .Args ) < 2 {
59
- utils .Print (c .Help ())
59
+ utils .Print (c .LongHelp ())
60
60
return nil
61
61
}
62
62
prefix , err := utils .GetStringLit (ic .Args [0 ])
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func (c DeleteCmd) Handler() func(ctx context.Context) {
34
34
utils .OutputWithElapse (func () error {
35
35
ic := utils .ExtractIshellContext (ctx )
36
36
if len (ic .Args ) < 1 {
37
- utils .Print (c .Help ())
37
+ utils .Print (c .LongHelp ())
38
38
return nil
39
39
}
40
40
k , err := utils .GetStringLit (ic .RawArgs [1 ])
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func (c DeletePrefixCmd) Handler() func(ctx context.Context) {
39
39
utils .OutputWithElapse (func () error {
40
40
ic := utils .ExtractIshellContext (ctx )
41
41
if len (ic .Args ) < 1 {
42
- utils .Print (c .Help ())
42
+ utils .Print (c .LongHelp ())
43
43
return nil
44
44
}
45
45
k , err := utils .GetStringLit (ic .RawArgs [1 ])
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func (c GetCmd) Handler() func(ctx context.Context) {
28
28
utils .OutputWithElapse (func () error {
29
29
ic := utils .ExtractIshellContext (ctx )
30
30
if len (ic .Args ) < 1 {
31
- utils .Print (c .Help ())
31
+ utils .Print (c .LongHelp ())
32
32
return nil
33
33
}
34
34
s := ic .RawArgs [1 ]
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func (c PutCmd) Handler() func(ctx context.Context) {
29
29
utils .OutputWithElapse (func () error {
30
30
ic := utils .ExtractIshellContext (ctx )
31
31
if len (ic .Args ) < 2 {
32
- fmt .Println (c .Help ())
32
+ fmt .Println (c .LongHelp ())
33
33
return nil
34
34
}
35
35
k , err := utils .GetStringLit (ic .RawArgs [1 ])
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ func (c VarCmd) Handler() func(ctx context.Context) {
37
37
utils .OutputWithElapse (func () error {
38
38
ic := utils .ExtractIshellContext (ctx )
39
39
if len (ic .Args ) < 1 {
40
- utils .Print (c .Help ())
40
+ utils .Print (c .LongHelp ())
41
41
return errors .New ("wrong args" )
42
42
}
43
43
stmt := strings .Join (ic .RawArgs [1 :], " " )
44
44
parts := strings .Split (stmt , "=" )
45
45
if len (parts ) != 2 {
46
- utils .Print (c .Help ())
46
+ utils .Print (c .LongHelp ())
47
47
return errors .New ("wrong format" )
48
48
}
49
49
varName , varValue := parts [0 ], parts [1 ]
Original file line number Diff line number Diff line change 1
1
Key,Value
2
2
h'68656c6c6f776f726c64', nice
3
3
h'68656c6c6f776f726c63', helllllll
4
+ Hello,World
4
5
1,79
5
6
2,54
6
7
3,74
You can’t perform that action at this time.
0 commit comments