Skip to content

Commit

Permalink
Merge pull request #2 from zzxwill/oam
Browse files Browse the repository at this point in the history
Upgrade depended package and make function public
  • Loading branch information
zzxwill authored Aug 27, 2020
2 parents 37779ce + 1f6788c commit 89058fb
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 113 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Folders
_obj
_test
.idea/

# Architecture specific extensions/prefixes
*.[568vq]
Expand Down
4 changes: 2 additions & 2 deletions cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func Run() {
if (narg > 1) || (narg == 0 && opts.selector == "") {
return cmd.Help()
}
config, err := parseConfig(args)
config, err := ParseConfig(args)
if err != nil {
log.Println(err)
os.Exit(2)
Expand All @@ -144,7 +144,7 @@ func Run() {
}
}

func parseConfig(args []string) (*stern.Config, error) {
func ParseConfig(args []string) (*stern.Config, error) {
kubeConfig, err := getKubeConfig()
if err != nil {
return nil, err
Expand Down
19 changes: 5 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,12 @@ go 1.12

require (
github.com/fatih/color v0.0.0-20180516100307-2d684516a886
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gogo/protobuf v1.3.0 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/google/gofuzz v1.0.0
github.com/googleapis/gnostic v0.3.1 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/imdario/mergo v0.3.7 // indirect
github.com/inconshreveable/mousetrap v1.0.0
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.9 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/mattn/go-colorable v0.1.7 // indirect
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747
github.com/pkg/errors v0.0.0-20180311214515-816c9085562c
github.com/spf13/cobra v0.0.0-20180629152535-a114f312e075
github.com/spf13/pflag v1.0.5
k8s.io/api v0.17.4
k8s.io/apimachinery v0.17.4
k8s.io/client-go v0.17.4
k8s.io/api v0.18.6
k8s.io/apimachinery v0.18.6
k8s.io/client-go v0.18.6
)
Loading

0 comments on commit 89058fb

Please sign in to comment.