summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-08-04 23:24:04 +0200
committerValery Piashchynski <[email protected]>2022-08-04 23:24:04 +0200
commit478ae2e769514ae52dce05727e112e84b94088b1 (patch)
tree33c3842cc7dba268446a840e87fb9a2504ef04ac /internal
parentbfeb471b3c725102aba0da1f11316bd770fac83f (diff)
fix linter warnings
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal')
-rw-r--r--internal/cli/jobs/command.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/cli/jobs/command.go b/internal/cli/jobs/command.go
index 4237839a..a2777208 100644
--- a/internal/cli/jobs/command.go
+++ b/internal/cli/jobs/command.go
@@ -17,7 +17,7 @@ const (
)
// NewCommand creates `jobs` command.
-func NewCommand(cfgFile *string, override *[]string, silent *bool) *cobra.Command { //nolint:funlen
+func NewCommand(cfgFile *string, override *[]string, silent *bool) *cobra.Command {
var (
pausePipes bool
destroyPipes bool
@@ -50,12 +50,15 @@ func NewCommand(cfgFile *string, override *[]string, silent *bool) *cobra.Comman
switch {
case pausePipes:
split := strings.Split(strings.Trim(args[0], " "), ",")
+
return pause(client, split, silent)
case destroyPipes:
split := strings.Split(strings.Trim(args[0], " "), ",")
+
return destroy(client, split, silent)
case resumePipes:
split := strings.Split(strings.Trim(args[0], " "), ",")
+
return resume(client, split, silent)
case listPipes:
return list(client)