Implement the debug flag and help command

I'm vacillating about the choice to have separate Config structs in the
`helm` and `run` packages. I can't tell whether it's "good separation of
concerns" or "cumbersome and over-engineered." It seems appropriate at
the moment, though.
This commit is contained in:
Erin Call
2019-12-09 16:25:47 -08:00
parent 446c6f1761
commit 4cbb4922fb
8 changed files with 260 additions and 63 deletions

22
internal/run/config.go Normal file
View File

@@ -0,0 +1,22 @@
package run
import (
"io"
)
// Config contains configuration applicable to all helm commands
type Config struct {
Debug bool
KubeConfig string
Values string
StringValues string
ValuesFiles []string
Namespace string
Token string
SkipTLSVerify bool
Certificate string
APIServer string
ServiceAccount string
Stdout io.Writer
Stderr io.Writer
}