utils

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(sourcePath, destinationPath string) error

func DeferTeaPanicHandler added in v0.2.0

func DeferTeaPanicHandler(p *tea.Program)

func DoesDirectoryExistAndIsNotEmpty

func DoesDirectoryExistAndIsNotEmpty(name string) bool

func DownloadFile

func DownloadFile(url string, filepath string) error

func ExecuteCmd added in v0.2.0

func ExecuteCmd(name string, args []string, dir string) error

ExecuteCmd provides a shorthand way to run a shell command

func MatchAllStringByRegex

func MatchAllStringByRegex(regex, str string) ([]*string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL