feat: add a command to clear all proxy configs

Closes #5002
This commit is contained in:
Jose Diaz-Gonzalez
2022-01-28 20:26:49 -05:00
parent 3b0bf4d8f2
commit 7136da1aa5
4 changed files with 86 additions and 0 deletions

View File

@@ -21,6 +21,19 @@ func CommandBuildConfig(appName string, allApps bool, parallelCount int) error {
return BuildConfig(appName)
}
// CommandClearConfig clears config for a given app
func CommandClearConfig(appName string, allApps bool) error {
if allApps {
return ClearConfig("--all")
}
if err := common.VerifyAppName(appName); err != nil {
return err
}
return ClearConfig(appName)
}
// CommandDisable disables the proxy for app via command line
func CommandDisable(appName string, allApps bool, parallelCount int) error {
if allApps {