refactor: split out config logic to remove need to check app name for function-based usage
This MR splits out the logic such that there is now a binary that handles function based calls without validating the app name. We should only every check the app name for the subcommands and not internally. Internal calls should have their arguments taken at face value.
This commit is contained in:
@@ -16,7 +16,13 @@ func TriggerConfigExport(appName string, global string, merged string, format st
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return export(appName, g, m, format)
|
||||
|
||||
appName, err = getAppNameOrGlobal(appName, g)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return export(appName, m, format)
|
||||
}
|
||||
|
||||
// TriggerConfigGet returns an app config value by key
|
||||
|
||||
Reference in New Issue
Block a user