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
@@ -12,7 +12,7 @@ var CommonConfig commonConfig
|
||||
|
||||
type commonConfig struct{}
|
||||
|
||||
func (commonConfig) LinkUnlink(ctx *cli.Context) {
|
||||
func (commonConfig) ConfigName_ModuleName(ctx *cli.Context) {
|
||||
if err := flag.CheckGlobal(ctx); err != nil {
|
||||
return
|
||||
}
|
||||
@@ -36,7 +36,7 @@ func (commonConfig) LinkUnlink(ctx *cli.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
func (commonConfig) GetSetDelete(ctx *cli.Context) {
|
||||
func (commonConfig) ConfigName_ConfigData(ctx *cli.Context) {
|
||||
if err := flag.CheckGlobal(ctx); err != nil {
|
||||
return
|
||||
}
|
||||
@@ -58,7 +58,7 @@ func (commonConfig) GetSetDelete(ctx *cli.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
func (commonConfig) Remove(ctx *cli.Context) {
|
||||
func (commonConfig) ConfigName(ctx *cli.Context) {
|
||||
if err := flag.CheckGlobal(ctx); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
+4
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user