utils

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IGNORE_KEYS = regexp.MustCompile(`(.old|.pub|.ppk|known_hosts|.dccache|.bak|config)`)

Functions

func AskYesNo

func AskYesNo(promptText string, defaultValue string) bool

func BasicPrompt

func BasicPrompt(prompt string, nullable bool) string

func CheckExisting

func CheckExisting(name string) bool

func CheckIfExists

func CheckIfExists(basepath string)

func CreateConfig

func CreateConfig(name, config string)

func GetCategories

func GetCategories() []string

func GetSSHConfig

func GetSSHConfig(name string) string

func GetSSHConfigs

func GetSSHConfigs(withBase bool) []string

func GetSSHDir

func GetSSHDir(configs bool) string

func GetSSHFile

func GetSSHFile() string

func GetSSHKeys

func GetSSHKeys() []string

func LinkConfig

func LinkConfig(name, category string)

func OpenWithDefaultTextEditor

func OpenWithDefaultTextEditor(filename string) error

func ParseInt

func ParseInt(input string) int

func ReadSSHConfig

func ReadSSHConfig(path string) string

func SelectMenu

func SelectMenu(promptText string, items []string, addNew bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL