Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExitCode1 = errors.New("exit code 1")
Functions ¶
func Run ¶
func Run( ctx context.Context, workDir string, cmd string, args ...string, ) (out []byte, err error)
Run runs an arbitrary command and returns (output, ErrExitCode1) if it exits with error code 1, otherwise returns the original error.
func RunTemplWatch ¶
RunTemplWatch starts `templ generate --log-level debug --watch` and reads its stdout pipe for failure and success logs updating the state accordingly. When ctx is canceled the interrupt signal is sent to the watch process and graceful shutdown is awaited.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.