Documentation ¶
Index ¶
- func CopyFile(src, dst string, fileMode os.FileMode) (err error)
- func DoubleWinPathSeparator(filePath string) string
- func PromptStrings(items []PromptItem, label string, onSelect func(PromptItem)) error
- func ReadCredentialsFromConsole(details, savedDetails coreutils.Credentials, disallowUsingSavedPassword bool) error
- func ScanFromConsole(caption string, scanInto *string, defaultValue string)
- func ScanJFrogPasswordFromConsole() (string, error)
- func ScanPasswordFromConsole(message string) (string, error)
- func SelectString(items []PromptItem, label string, onSelect func(PromptItem)) error
- 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 ¶
func PromptStrings(items []PromptItem, label string, onSelect func(PromptItem)) 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 if the user changed the username or the url.
func ScanFromConsole ¶
func ScanJFrogPasswordFromConsole ¶ added in v2.14.0
func ScanPasswordFromConsole ¶ added in v2.2.0
func SelectString ¶
func SelectString(items []PromptItem, label string, onSelect func(PromptItem)) error
func UnixToWinPathSeparator ¶
func WinToUnixPathSeparator ¶
Types ¶
type PromptItem ¶
Click to show internal directories.
Click to hide internal directories.