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

+4 -3
View File
@@ -12,7 +12,7 @@ var Module module
type module struct{}
func (module) GetSetDelete(ctx *cli.Context) {
func (module) ModuleName_ModuleData(ctx *cli.Context) {
if err := flag.CheckGlobal(ctx); err != nil {
return
}
@@ -26,7 +26,8 @@ func (module) GetSetDelete(ctx *cli.Context) {
}
}
case 1:
if moduleConfiguration, _, err := service.Config.GetConfigurationAndJsonByModuleName(ctx.Args().Get(1)); err != nil {
moduleConfiguration, err := service.Config.GetConfigurationByModuleName(ctx.Args().Get(1))
if err != nil {
return
} else {
for key, _ := range bellows.Flatten(moduleConfiguration.Data) {
@@ -36,7 +37,7 @@ func (module) GetSetDelete(ctx *cli.Context) {
}
}
func (module) Schema(ctx *cli.Context) {
func (module) ModuleName(ctx *cli.Context) {
if err := flag.CheckGlobal(ctx); err != nil {
return
}