Skip to content

Commit

Permalink
-Bump go : 1.16 -> 1.17
Browse files Browse the repository at this point in the history
-Bump Cobra : 1.2.1 -> 1.3.0
-Disable Cobra-supplied completion command
-Bump Viper : 1.8.1 -> 1.10.1
  • Loading branch information
sarahcpage committed Jan 13, 2022
1 parent da5ec48 commit 4de54b1
Show file tree
Hide file tree
Showing 5 changed files with 278 additions and 63 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright © 2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.16 AS builder
FROM golang:1.17 AS builder

WORKDIR /gobuild
ENV CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Use "viya4-orders-cli [command] --help" for more information about a command.
[SAS Viya Orders API](https://developer.sas.com/guides/sas-viya-orders.html)
are required. You can obtain them from the
[SAS API Portal](https://apiportal.sas.com/get-started).
- [Go](https://golang.org/) 1.16 or [Docker](https://www.docker.com/) is required if you intend to build your own image.
- [Go](https://golang.org/) 1.17 or [Docker](https://www.docker.com/) is required if you intend to build your own image.
- [git](https://git-scm.com/) version 2 or later is required if you intend to clone the repository.

### Installation
Expand Down
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func init() {
rootCmd.PersistentFlags().StringVarP(&outFormat, "output", "o", "text",
"output format - valid values:\n"+
"\tj, json\n\tt, text\n")

// Disable completion command (provided by Cobra by default starting with v1.30)
rootCmd.CompletionOptions.DisableDefaultCmd = true
}

// initConfig reads in config file and ENV variables if set.
Expand Down
31 changes: 26 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
module github.com/sassoftware/viya4-orders-cli

go 1.16
go 1.17

require (
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect
github.com/spf13/cobra v1.3.0
github.com/spf13/viper v1.10.1
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
)

require (
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect
golang.org/x/sys v0.0.0-20211210111614-af8b64212486 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit 4de54b1

Please sign in to comment.