Documentation ¶
Index ¶
- func PanicOnError(err error)
- func SourceArgs(args []string) ([]string, error)
- func SourceMode(args []string) bool
- func Ticker(cb func(), delay time.Duration, done chan bool)
- func ValidateArgs(args []string) error
- func WithinWorkingDir(targetPath string, cb func(workingDir string))
- func WriteFileIfChanged(outputFilepath string, output []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SourceArgs ¶
func SourceMode ¶
func Ticker ¶
Ticker repeatedly calls cb with a delay in between calls. It stops doing This When a element is sent to the done channel.
func ValidateArgs ¶
func WithinWorkingDir ¶
WithinWorkingDir changes the current working directory temporarily and executes cb within that context.
func WriteFileIfChanged ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.