summaryrefslogtreecommitdiff
path: root/internal/cli/workers
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cli/workers')
-rw-r--r--internal/cli/workers/command.go4
-rw-r--r--internal/cli/workers/command_test.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/cli/workers/command.go b/internal/cli/workers/command.go
index f498b7af..78d8d1d2 100644
--- a/internal/cli/workers/command.go
+++ b/internal/cli/workers/command.go
@@ -19,7 +19,7 @@ import (
)
// NewCommand creates `workers` command.
-func NewCommand(cfgFile *string) *cobra.Command { //nolint:funlen
+func NewCommand(cfgFile *string, override *[]string) *cobra.Command { //nolint:funlen
var (
// interactive workers updates
interactive bool
@@ -38,7 +38,7 @@ func NewCommand(cfgFile *string) *cobra.Command { //nolint:funlen
return errors.E(op, errors.Str("no configuration file provided"))
}
- client, err := internalRpc.NewClient(*cfgFile)
+ client, err := internalRpc.NewClient(*cfgFile, *override)
if err != nil {
return err
}
diff --git a/internal/cli/workers/command_test.go b/internal/cli/workers/command_test.go
index a3d144df..c68ec9b1 100644
--- a/internal/cli/workers/command_test.go
+++ b/internal/cli/workers/command_test.go
@@ -9,14 +9,14 @@ import (
)
func TestCommandProperties(t *testing.T) {
- cmd := workers.NewCommand(nil)
+ cmd := workers.NewCommand(nil, nil)
assert.Equal(t, "workers", cmd.Use)
assert.NotNil(t, cmd.RunE)
}
func TestCommandFlags(t *testing.T) {
- cmd := workers.NewCommand(nil)
+ cmd := workers.NewCommand(nil, nil)
cases := []struct {
giveName string