helpers

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXIT_SUCCESS    ExitCode = 0
	EXIT_BAD_USAGE           = 64
	EXIT_BAD_CONFIG          = 78
)

Variables

This section is empty.

Functions

func CreateDir added in v0.4.0

func CreateDir(dirPath string) error

func CreatePathIfNotFound added in v0.4.0

func CreatePathIfNotFound(configPath string) error

func DirExists added in v0.4.0

func DirExists(dirPath string) bool

func Exit

func Exit(code ExitCode)

func FileExists added in v0.4.0

func FileExists(filePath string) bool

func FuzzyFind

func FuzzyFind(name string, data []string) fuzzy.Matches

func WriteFile added in v0.4.0

func WriteFile(filePath string, content []byte) error

Types

type ExitCode

type ExitCode = int

Jump to

Keyboard shortcuts

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