add 'contain' command for common configs

add flag 'full' for 'get' command
update bash complete
This commit is contained in:
DeniskaRediska committed 2019-10-30 14:58:50 +03:00
1 parent 1a3458ebdd
commit 8b8815d2f2
21 files changed
+348 -54

No files matched your search

+2 -2
View File
@@ -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
}