add 'contain' command for common configs
add flag 'full' for 'get' command update bash complete
This commit is contained in:
1 parent
1a3458ebdd
commit
8b8815d2f2
21 files changed
+348
-54
No files matched your search
@@ -16,7 +16,7 @@ func Delete() cli.Command {
|
||||
Name: "delete",
|
||||
Usage: "set common configurations",
|
||||
Action: deleteComm.action,
|
||||
BashComplete: bash.CommonConfig.GetSetDelete,
|
||||
BashComplete: bash.CommonConfig.ConfigName_ConfigData,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ func (g deleteCommand) action(ctx *cli.Context) {
|
||||
|
||||
config, ok := commonConfigs[ccName]
|
||||
if !ok {
|
||||
utils.PrintError(errors.Errorf("common config %s not found", ccName))
|
||||
utils.PrintError(errors.Errorf("common config [%s] not found", ccName))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user