internal

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ago

func Ago(t time.Time) string

func Debug

func Debug(v interface{})

func DefaultStr

func DefaultStr(str ...string) string

func FileExists

func FileExists(filename string) bool

func GetColor

func GetColor(i int) *aurora.Color

func NewPrefixedWriter added in v0.2.5

func NewPrefixedWriter(w io.Writer, name string, color *aurora.Color) *prefixedWriter

func NewRunGroup

func NewRunGroup(ctx context.Context, scripts []Script) *runGroup

func WatchAndRepeat

func WatchAndRepeat(dir string, cb func(e, p string))

Types

type Script

type Script interface {
	Dir() string
	Env() []string
	Name() string
	Run() string
	Shell() string
	Prefix() string
}

Jump to

Keyboard shortcuts

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