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:
Jose Diaz-Gonzalez
2022-05-21 14:42:01 -04:00
parent b3d7174a7a
commit 5981ff8e9b
6 changed files with 269 additions and 105 deletions

View File

@@ -7,7 +7,7 @@ config_sub() {
declare desc="executes a config subcommand"
local name="$1"
shift
"$PLUGIN_AVAILABLE_PATH/config/subcommands/$name" "config:$name" "$@"
"$PLUGIN_AVAILABLE_PATH/config/config_sub" "$name" "$@"
}
config_export() {