Documentation ¶
Index ¶
- Constants
- func AppendIfNotExists(slice []string, s string) []string
- func CheckError(err error)
- func Contains(slice []string, str string) bool
- func GetCurrentProfileFile() string
- func GetEnv(key, fallback string) string
- func GetHomeDir() string
- func GetProfileFileLocation() string
- func GetProfiles() []string
- func IsDirectoryExists(path string) bool
- func NewPromptUISearcher(items []string) list.Searcher
- func TouchFile(name string) error
- func WriteFile(config, loc string) error
- type BellSkipper
Constants ¶
View Source
const ( NoticeColor = "\033[0;38m%s\u001B[0m" PromptColor = "\033[1;38m%s\u001B[0m" CyanColor = "\033[0;36m%s\033[0m" MagentaColor = "\033[0;35m%s\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func AppendIfNotExists ¶
func CheckError ¶
func CheckError(err error)
func GetCurrentProfileFile ¶
func GetCurrentProfileFile() string
func GetHomeDir ¶
func GetHomeDir() string
func GetProfileFileLocation ¶
func GetProfileFileLocation() string
func GetProfiles ¶
func GetProfiles() []string
func IsDirectoryExists ¶
func NewPromptUISearcher ¶
Types ¶
type BellSkipper ¶
type BellSkipper struct{}
func (*BellSkipper) Close ¶
func (bs *BellSkipper) Close() error
Click to show internal directories.
Click to hide internal directories.