Documentation
¶
Index ¶
- Constants
- func Confirm(msg string) bool
- func CreateDirectory() (dirPath string, err error)
- func DiscardLastCharacter(s string) string
- func DownloadUrl(url, dest string) error
- 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 IsGhosttyTerminalRunning() bool
- func IsKittyTerminalRunning() bool
- func IsKonsoleTerminalRunning() bool
- func OpenURL(url string) error
Constants ¶
View Source
const BlueColor = "\033[34m"
View Source
const ResetColor = "\033[0m"
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
func DiscardLastCharacter ¶ added in v0.1.5
Discards the last character of a string
func DownloadUrl ¶ added in v0.2.0
downloads a file from a url and places it in a specified destination
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 IsGhosttyTerminalRunning ¶ added in v0.2.0
func IsGhosttyTerminalRunning() bool
Checks if the terminal running is Konsole and has
func IsKittyTerminalRunning ¶ added in v0.1.6
func IsKittyTerminalRunning() bool
Checks if the terminal using gowall is the kitty terminal emulator
func IsKonsoleTerminalRunning ¶ added in v0.2.0
func IsKonsoleTerminalRunning() bool
Checks if the terminal running is Konsole and has
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.