Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists checks if file exists in given location.
func GetUsername ¶
func GetUsername() string
GetUsername returns current username or empty if it cannot be fetched from OS.
func PromptAllowedString ¶
PromptAllowedString prompts user an answer that is in the allowed slice. Returns default in case user gives empty answer.
func PromptPassword ¶
PromptPassword prompts password from user with given question. Password is not shown in terminal.
Types ¶
type Remote ¶
Remote presents a SSH remote with username, hostname and port.
func ParseRemote ¶
ParseRemote parses SSH remote from string. Takes into account username before last @ character and port after : character.
Click to show internal directories.
Click to hide internal directories.