From 4de1937e41b15e5e4c0a12e5e4e35c325f1cd877 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 19 Feb 2021 23:24:53 -0500 Subject: [PATCH] chore: drop unused skip-restart flag for proxy:disable --- plugins/proxy/src/subcommands/subcommands.go | 3 +-- plugins/proxy/subcommands.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/proxy/src/subcommands/subcommands.go b/plugins/proxy/src/subcommands/subcommands.go index 041d59130..1fb7ad857 100644 --- a/plugins/proxy/src/subcommands/subcommands.go +++ b/plugins/proxy/src/subcommands/subcommands.go @@ -25,10 +25,9 @@ func main() { err = proxy.CommandBuildConfig(appName) case "disable": args := flag.NewFlagSet("proxy:disable", flag.ExitOnError) - skipRestart := args.Bool("no-restart", false, "--no-restart: skip restart of the app") args.Parse(os.Args[2:]) appName := args.Arg(0) - err = proxy.CommandDisable(appName, *skipRestart) + err = proxy.CommandDisable(appName) case "enable": args := flag.NewFlagSet("proxy:enable", flag.ExitOnError) args.Parse(os.Args[2:]) diff --git a/plugins/proxy/subcommands.go b/plugins/proxy/subcommands.go index bc2a6494b..8652444c7 100644 --- a/plugins/proxy/subcommands.go +++ b/plugins/proxy/subcommands.go @@ -18,7 +18,7 @@ func CommandBuildConfig(appName string) error { } // CommandDisable disables the proxy for app via command line -func CommandDisable(appName string, skipRestart bool) error { +func CommandDisable(appName string) error { if err := common.VerifyAppName(appName); err != nil { return err }