Documentation
¶
Index ¶
- Variables
- func AskForConfirmation(s string) bool
- func EditEnvFile(content string) (string, error)
- func ExecOcCmd(args []string) *exec.Cmd
- func ExecPlainOcCmd(args []string) *exec.Cmd
- func GetOcNamespace() (string, error)
- func SetOptions(verbose bool, namespace string, selector string)
- func ShowDiff(a string, b string)
- func VerboseMsg(messages ...string)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var PrintBluef func(format string, a ...interface{})
View Source
var PrintGreenf func(format string, a ...interface{})
View Source
var PrintRedf func(format string, a ...interface{})
View Source
var PrintYellowf func(format string, a ...interface{})
Functions ¶
func AskForConfirmation ¶
askForConfirmation asks the user for confirmation. A user must type in "yes" or "no" and then press enter. It has fuzzy matching, so "y", "Y", "yes", "YES", and "Yes" all count as confirmations. If the input is not recognized, it will ask again. The function does not return until it gets a valid response from the user.
func EditEnvFile ¶
func ExecPlainOcCmd ¶
func GetOcNamespace ¶
func SetOptions ¶
func VerboseMsg ¶
func VerboseMsg(messages ...string)
Types ¶
Click to show internal directories.
Click to hide internal directories.