Documentation
¶
Index ¶
- func DeepSearchExecutable(cmdName string, roots []string) string
- func DirExists(path string) bool
- func EnsureDir(path string) error
- func FileExists(path string) bool
- func FindExecutable(cmdName string, fallbackGlobs []string) string
- func GetShellCommand(command string) *exec.Cmd
- func JoinPath(elem ...string) string
- func OpenBrowser(url string) error
- func OpenFile(path string) error
- func PrintError(msg string)
- func PrintSuccess(msg string)
- func StripExt(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepSearchExecutable ¶
DeepSearchExecutable performs a more intensive search in specific root directories. It looks for the cmdName in subdirectories of roots, but limits depth for performance.
func FileExists ¶
FileExists returns true if the given path exists and is a file
func FindExecutable ¶
FindExecutable attempts to find an executable by name in PATH or fallback glob patterns.
func GetShellCommand ¶
func OpenBrowser ¶
OpenBrowser opens the specified URL in the default browser in a cross-platform way.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.