summaryrefslogtreecommitdiff
path: root/internal/cli/reset
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-08-04 23:17:08 +0200
committerValery Piashchynski <[email protected]>2022-08-04 23:17:08 +0200
commitbfeb471b3c725102aba0da1f11316bd770fac83f (patch)
tree715488b63df786ad6eea1e1342e0ac46f887d204 /internal/cli/reset
parent024b54348c6d3ac34f48dc17c098d66554385d83 (diff)
feat: jobs cli commands
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal/cli/reset')
-rw-r--r--internal/cli/reset/command.go12
-rw-r--r--internal/cli/reset/command_test.go4
2 files changed, 6 insertions, 10 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"))
}
diff --git a/internal/cli/reset/command_test.go b/internal/cli/reset/command_test.go
index 509354e2..8192ca9c 100644
--- a/internal/cli/reset/command_test.go
+++ b/internal/cli/reset/command_test.go
@@ -16,7 +16,3 @@ func TestCommandProperties(t *testing.T) {
assert.Equal(t, "reset", cmd.Use)
assert.NotNil(t, cmd.RunE)
}
-
-func TestExecution(t *testing.T) {
- t.Skip("Command execution is not implemented yet")
-}