Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 2574feb

Browse files
author
Sam McGeown
committed
Switch to logrus for logging, enable the --debug flag
1 parent 0ee60d3 commit 2574feb

File tree

15 files changed

+66
-58
lines changed

15 files changed

+66
-58
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+*"
7+
8+
jobs:
9+
release:
10+
name: release (static binaries)
11+
runs-on: ubuntu-latest
12+
steps:
13+
-
14+
name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
-
19+
name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.16
23+
-
24+
name: Run GoReleaser
25+
uses: goreleaser/goreleaser-action@v2
26+
with:
27+
version: latest
28+
args: release --rm-dist
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml.hide

Lines changed: 0 additions & 30 deletions
This file was deleted.

cmd/api-func-executions.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package cmd
22

33
import (
44
"encoding/json"
5-
"log"
65
"strconv"
76
"strings"
87

8+
log "github.com/sirupsen/logrus"
9+
910
"github.com/go-resty/resty/v2"
1011
"github.com/mitchellh/mapstructure"
1112
)

cmd/api-func-shared.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package cmd
33
import (
44
"errors"
55
"io/ioutil"
6-
"log"
76
"os"
87
"path/filepath"
98

9+
log "github.com/sirupsen/logrus"
10+
1011
"github.com/go-resty/resty/v2"
1112
"github.com/spf13/viper"
1213
)

cmd/api-func-variables.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import (
44
"bytes"
55
"errors"
66
"io/ioutil"
7-
"log"
87
"os"
98
"path/filepath"
109

10+
log "github.com/sirupsen/logrus"
11+
1112
"github.com/go-resty/resty/v2"
1213
"github.com/mitchellh/mapstructure"
1314
"gopkg.in/yaml.v2"

cmd/cli-helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package cmd
22

33
import (
44
"encoding/json"
5-
"log"
65
"os"
76
"reflect"
87

8+
log "github.com/sirupsen/logrus"
9+
910
"github.com/olekukonko/tablewriter"
1011
)
1112

cmd/cli-verbs.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/*
2-
Package cmd Copyright © 2021 Sam McGeown <smcgeown@vmware.com>
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
161
package cmd
172

183
import (

cmd/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package cmd
22

33
import (
4-
"log"
54
"os"
65

6+
log "github.com/sirupsen/logrus"
7+
78
"github.com/spf13/cobra"
89
"github.com/spf13/viper"
910
)

cmd/customintegration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package cmd
22

33
import (
4-
"log"
54
"os"
65

6+
log "github.com/sirupsen/logrus"
7+
78
"github.com/olekukonko/tablewriter"
89
"github.com/spf13/cobra"
910
)

cmd/endpoint.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package cmd
22

33
import (
4-
"log"
54
"os"
65

6+
log "github.com/sirupsen/logrus"
7+
78
"github.com/olekukonko/tablewriter"
89
"github.com/spf13/cobra"
910
)

0 commit comments

Comments
 (0)