fix spelling
This commit is contained in:
+3
-3
@@ -676,11 +676,11 @@ func ConfirmWithConfig(m configmap.Getter, configName string, Default bool) bool
|
||||
|
||||
// Choose one of the defaults or type a new string if newOk is set
|
||||
func Choose(what string, defaults, help []string, newOk bool) string {
|
||||
valueDescripton := "an existing"
|
||||
valueDescription := "an existing"
|
||||
if newOk {
|
||||
valueDescripton = "your own"
|
||||
valueDescription = "your own"
|
||||
}
|
||||
fmt.Printf("Choose a number from below, or type in %s value\n", valueDescripton)
|
||||
fmt.Printf("Choose a number from below, or type in %s value\n", valueDescription)
|
||||
for i, text := range defaults {
|
||||
var lines []string
|
||||
if help != nil {
|
||||
|
||||
@@ -95,7 +95,7 @@ func AddFlags(flagSet *pflag.FlagSet) {
|
||||
flags.StringVarP(flagSet, &fs.Config.ClientKey, "client-key", "", fs.Config.ClientKey, "Client SSL private key (PEM) for mutual TLS auth")
|
||||
}
|
||||
|
||||
// SetFlags converts any flags into config which weren't straight foward
|
||||
// SetFlags converts any flags into config which weren't straight forward
|
||||
func SetFlags() {
|
||||
if verbose >= 2 {
|
||||
fs.Config.LogLevel = fs.LogLevelDebug
|
||||
|
||||
@@ -43,7 +43,7 @@ func StringToInterface(def interface{}, in string) (newValue interface{}, err er
|
||||
return o.Elem().Interface(), nil
|
||||
}
|
||||
|
||||
// Item descripts a single entry in the options structure
|
||||
// Item describes a single entry in the options structure
|
||||
type Item struct {
|
||||
Name string // snake_case
|
||||
Field string // CamelCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Package flags contains enahnced versions of spf13/pflag flag
|
||||
// Package flags contains enhanced versions of spf13/pflag flag
|
||||
// routines which will read from the environment also.
|
||||
package flags
|
||||
|
||||
|
||||
Reference in New Issue
Block a user