summaryrefslogtreecommitdiff
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
parentbfeb471b3c725102aba0da1f11316bd770fac83f (diff)
fix linter warnings
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--.github/workflows/tests.yml4
-rw-r--r--internal/cli/jobs/command.go5
2 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 47cf9b55..2ce31e92 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -40,12 +40,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3 # action page: <https://github.com/actions/setup-go>
with:
- go-version: 1.18
+ go-version: 1.19
- name: Run linter
uses: golangci/[email protected]
with:
- version: v1.47 # without patch version
+ version: v1.48 # without patch version
only-new-issues: false # show only new issues if it's a pull request
args: --build-tags=safe --timeout=10m
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)