From cceb3b908f09e7fe0288b1707cccc55502cb65ea Mon Sep 17 00:00:00 2001 From: Kaloyan Tanev <24719519+KaloyanTanev@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:33:45 +0200 Subject: [PATCH] cmd: enable exit all (#3296) Enable exit all. category: feature ticket: #3243 --- cmd/exit.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/exit.go b/cmd/exit.go index 95b500090..59d8155f9 100644 --- a/cmd/exit.go +++ b/cmd/exit.go @@ -121,7 +121,6 @@ func bindExitFlags(cmd *cobra.Command, config *exitConfig, flags []exitCLIFlag) return s } - //nolint:exhaustive // `all` is not yet implemented switch flag { case publishAddress: cmd.Flags().StringVar(&config.PublishAddress, publishAddress.String(), "https://api.obol.tech/v1", maybeRequired("The URL of the remote API.")) @@ -149,9 +148,8 @@ func bindExitFlags(cmd *cobra.Command, config *exitConfig, flags []exitCLIFlag) cmd.Flags().DurationVar(&config.PublishTimeout, publishTimeout.String(), 30*time.Second, "Timeout for publishing a signed exit to the publish-address API.") case validatorIndex: cmd.Flags().Uint64Var(&config.ValidatorIndex, validatorIndex.String(), 0, "Validator index of the validator to exit, the associated public key must be present in the cluster lock manifest. If --validator-public-key is also provided, validator existence won't be checked on the beacon chain.") - // TODO: enable after all functionalities for --all are ready - // case all: - // cmd.Flags().BoolVar(&config.All, all.String(), false, "Exit all currently active validators in the cluster.") + case all: + cmd.Flags().BoolVar(&config.All, all.String(), false, "Exit all currently active validators in the cluster.") } if f.required {