Documentation ¶
Index ¶
- func CheckIfWsl() bool
- func GetFileReferenceFromKubeconfig(filename string, kubeconfigPath string) (string, error)
- func GetWslHostName() string
- func OpenBrowser(url string) error
- func PromptPassword(prompt string) (string, error)
- func PromptPasswordWithConfirmation() (string, error)
- func PromptPlaintext(prompt string) (string, error)
- func PromptSelect(prompt string, options []string) (string, error)
- func String(length int) string
- func StringWithCharset(length int, charset string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfWsl ¶ added in v0.7.2
func CheckIfWsl() bool
Checks based on uname if the linux environment is under wsl or not
func GetWslHostName ¶ added in v0.7.2
func GetWslHostName() string
Gets the subsystem host ip If the CLI is running under WSL the localhost url will not work so this function should return the real ip that we should redirect to
func OpenBrowser ¶
OpenBrowser opens the specified URL in the default browser of the user.
func PromptPassword ¶
PromptPassword prompts a user to input a hidden field
func PromptPasswordWithConfirmation ¶
PromptPasswordWithConfirmation is a helper function to prompt for a password twice
func PromptPlaintext ¶
PromptPlaintext prompts a user to input plain text
func String ¶
String returns a random string, pulling from a standard alphanumeric charset [a-zA-Z0-9]
func StringWithCharset ¶
StringWithCharset returns a random string by pulling from a given charset
Types ¶
This section is empty.