Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAbort = errors.New("user said no") ErrNotInteractive = errors.New("not an interactive terminal: cannot ask user confirmation") )
Functions ¶
func FileExists ¶
FileExists checks if a file exists and is not a directory
func FolderExists ¶
FolderExists checks if a folder exists and is indeed a folder.
func FolderIsEmpty ¶
FolderIsEmpty checks if a folder is empty
func HomeDir ¶
func HomeDir() string
Returns the user's home directory. On Linux and MacOS, this is equivalent to resolving `~` On Windows, this is equivalent to %USERPROFILE%
func IsInteractive ¶
func IsInteractive() bool
IsInteractive returns true if `deb` is currently being executed in a terminal, thus probably with a human interacting with it.
func PromptConfirm ¶
PromptConfirm will ask the user for confirmation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.