Skip to content

Commit

Permalink
fix --> exclude pc (#17)
Browse files Browse the repository at this point in the history
* fix pc

* update to go mod 1.16
  • Loading branch information
simonfuhrer authored Jul 15, 2021
1 parent 8462e6f commit f701941
Show file tree
Hide file tree
Showing 5 changed files with 397 additions and 177 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Set up Go 1.15
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.15.x
go-version: 1.16.x

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
go-version: 1.16.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion cmd/displayers/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (o Clusters) header() []string {
func (o Clusters) TableData(w io.Writer) error {
data := make([][]string, len(o.Entities))
for i, cluster := range o.Entities {
if cluster.Spec.Name == "Unnamed" {
if cluster.Spec.Name == "Unnamed" || strings.Compare(*cluster.Status.Resources.Config.Build.Version, "pc") == 0 {
continue
}
var hosts = 0
Expand Down
38 changes: 15 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
module github.com/simonfuhrer/nutactl

go 1.15
go 1.16

require (
github.com/briandowns/spinner v1.11.1
github.com/briandowns/spinner v1.16.0
github.com/dustin/go-humanize v1.0.0
github.com/fatih/color v1.10.0
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/fatih/color v1.12.0
github.com/google/uuid v1.3.0 // indirect
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
github.com/k0kubun/pp v3.0.1+incompatible
github.com/magiconair/properties v1.8.4 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.3.3 // indirect
github.com/olekukonko/tablewriter v0.0.4
github.com/pelletier/go-toml v1.8.1 // indirect
github.com/mattn/go-isatty v0.0.13 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/olekukonko/tablewriter v0.0.5
github.com/pkg/errors v0.9.1
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.7.0
github.com/spf13/afero v1.4.1 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.1
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.1
github.com/spf13/viper v1.8.1
github.com/tcnksm/go-input v0.0.0-20180404061846-548a7d7a8ee8
github.com/tecbiz-ch/nutanix-go-sdk v0.1.11
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect
golang.org/x/sys v0.0.0-20201110211018-35f3e6cf4a65 // indirect
golang.org/x/text v0.3.4 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v2 v2.3.0
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
golang.org/x/text v0.3.6 // indirect
gopkg.in/yaml.v2 v2.4.0
k8s.io/client-go v11.0.0+incompatible
)
Loading

0 comments on commit f701941

Please sign in to comment.