fix spelling

This commit is contained in:
Fabian Möller
2019-04-30 14:12:18 +02:00
parent 7963320a29
commit 48c09608ea
31 changed files with 41 additions and 41 deletions
+3 -3
View File
@@ -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 {
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 -1
View File
@@ -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