Documentation ¶
Index ¶
- func CopyFile(src, dst string, fileMode os.FileMode) error
- func DoubleWinPathSeparator(filePath string) string
- func PromptStrings(items []PromptItem, label string, onSelect func()) error
- func ReadCredentialsFromConsole(details, savedDetails coreutils.Credentials, disallowUsingSavedPassword bool) error
- func ScanFromConsole(caption string, scanInto *string, defaultValue string)
- func UnixToWinPathSeparator(filePath string) string
- func WinToUnixPathSeparator(filePath string) string
- type PromptItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoubleWinPathSeparator ¶
func PromptStrings ¶ added in v1.4.0
func PromptStrings(items []PromptItem, label string, onSelect func()) error
Prompt strings by selecting from list until "Save and continue" is selected. Usage example: 🐸 Save and continue JFrog Artifactory URL (http://localhost:8080/artifactory/) JFrog Distribution URL () JFrog Xray URL () JFrog Mission Control URL () JFrog Pipelines URL ()
func ReadCredentialsFromConsole ¶
func ReadCredentialsFromConsole(details, savedDetails coreutils.Credentials, disallowUsingSavedPassword bool) error
disallowUsingSavedPassword - Prevent changing username or url without changing the password. False iff the user changed the username or the url.
func ScanFromConsole ¶
func UnixToWinPathSeparator ¶
func WinToUnixPathSeparator ¶
Types ¶
type PromptItem ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.