summaryrefslogtreecommitdiff
path: root/internal/cli/reset/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cli/reset/command.go')
-rw-r--r--internal/cli/reset/command.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/cli/reset/command.go b/internal/cli/reset/command.go
index 084cfeff..f48856cc 100644
--- a/internal/cli/reset/command.go
+++ b/internal/cli/reset/command.go
@@ -10,18 +10,18 @@ import (
"github.com/spf13/cobra"
)
+const (
+ op = errors.Op("reset_handler")
+ resetterList = "resetter.List"
+ resetterReset = "resetter.Reset"
+)
+
// NewCommand creates `reset` command.
func NewCommand(cfgFile *string, override *[]string, silent *bool) *cobra.Command {
return &cobra.Command{
Use: "reset",
Short: "Reset workers of all or specific RoadRunner service",
RunE: func(_ *cobra.Command, args []string) error {
- const (
- op = errors.Op("reset_handler")
- resetterList = "resetter.List"
- resetterReset = "resetter.Reset"
- )
-
if cfgFile == nil {
return errors.E(op, errors.Str("no configuration file provided"))
}