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

+3 -3
View File
@@ -15,7 +15,7 @@ func UnLink() cli.Command {
Name: "unlink",
Usage: "unlink common configurations from module configuration",
Action: unlink.action,
BashComplete: bash.CommonConfig.LinkUnlink,
BashComplete: bash.CommonConfig.ConfigName_ModuleName,
}
}
@@ -50,11 +50,11 @@ func (g unlinkCommand) action(ctx *cli.Context) {
config, ok := commonConfigs[configName]
if !ok {
utils.PrintError(errors.Errorf("common config %s not found", configName))
utils.PrintError(errors.Errorf("common config [%s] not found", configName))
return
}
moduleConfig, _, err := service.Config.GetConfigurationAndJsonByModuleName(moduleName)
moduleConfig, err := service.Config.GetConfigurationByModuleName(moduleName)
if err != nil {
utils.PrintError(err)
return