Documentation ¶
Index ¶
- Variables
- func AskYesNo(promptText string, defaultValue string) bool
- func BasicPrompt(prompt string, nullable bool) string
- func CheckExisting(name string) bool
- func CheckIfExists(basepath string)
- func CreateConfig(name, config string)
- func GetCategories() []string
- func GetSSHConfig(name string) string
- func GetSSHConfigs(withBase bool) []string
- func GetSSHDir(configs bool) string
- func GetSSHFile() string
- func GetSSHKeys() []string
- func LinkConfig(name, category string)
- func OpenWithDefaultTextEditor(filename string) error
- func ParseInt(input string) int
- func ReadSSHConfig(path string) string
- func SelectMenu(promptText string, items []string, addNew bool) string
Constants ¶
This section is empty.
Variables ¶
View Source
var IGNORE_KEYS = regexp.MustCompile(`(.old|.pub|.ppk|known_hosts|.dccache|.bak|config)`)
Functions ¶
func BasicPrompt ¶
func CheckExisting ¶
func CheckIfExists ¶
func CheckIfExists(basepath string)
func CreateConfig ¶
func CreateConfig(name, config string)
func GetCategories ¶
func GetCategories() []string
func GetSSHConfig ¶
func GetSSHConfigs ¶
func GetSSHFile ¶
func GetSSHFile() string
func GetSSHKeys ¶
func GetSSHKeys() []string
func LinkConfig ¶
func LinkConfig(name, category string)
func ReadSSHConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.