Organize Pinniped CLI into subcommands; Add get-kubeconfig subcommand

- Add flag parsing and help messages for root command,
  `exchange-credential` subcommand, and new `get-kubeconfig` subcommand
- The new `get-kubeconfig` subcommand is a work in progress in this
  commit
- Also add here.Doc() and here.Docf() to enable nice heredocs in
  our code
This commit is contained in:
Ryan Richard
2020-09-11 17:56:05 -07:00
parent 19c671a60a
commit da7c981f14
10 changed files with 490 additions and 104 deletions
+2
View File
@@ -3,7 +3,9 @@ module github.com/suzerain-io/pinniped
go 1.14
require (
github.com/MakeNowJust/heredoc/v2 v2.0.1
github.com/davecgh/go-spew v1.1.1
github.com/ghodss/yaml v1.0.0
github.com/go-logr/logr v0.2.1
github.com/golang/mock v1.4.4
github.com/golangci/golangci-lint v1.31.0