Documentation ¶
Index ¶
- func Confirm(msg string) bool
- func CreateDirectory() (dirPath string, err error)
- func DiscardLastCharacter(s string) string
- func ExpandHashtag(pathWithHashtag string) ([]string, error)
- func ExpandHomeDirectory(paths []string) []string
- func FormatErrors(errs []error) string
- func GetFileExtensionFromURL(rawurl string) (string, error)
- func HandleError(err error, msg ...string)
- func IsKittyTerminalRunning() bool
- func OpenURL(url string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
func DiscardLastCharacter ¶ added in v0.1.5
Discards the last character of a string
func ExpandHashtag ¶ added in v0.1.5
Function to expand the delimiter '#' to every file under that directory
Example "~/Pictures/#" -->["Pictures/img1.png","~/Pictures/img2.png","~/Pictures/img3.png"]
func ExpandHomeDirectory ¶
Function to expand the tilde (~) to the full home directory path @Example ~/Pictures/flowers.png --> /home/username/Pictures/flowers.png
func FormatErrors ¶ added in v0.1.6
Formats a slice of errors to a single error, each seperated by a new line
func GetFileExtensionFromURL ¶ added in v0.1.7
func HandleError ¶ added in v0.1.6
Prints the error in red and exits
func IsKittyTerminalRunning ¶ added in v0.1.6
func IsKittyTerminalRunning() bool
Checks if the terminal using gowall is the kitty terminal emulator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.