Documentation
¶
Overview ¶
Package runner shells out to external tools (Hugo). Output is streamed straight to the user's terminal rather than captured, so crofty never buffers tokens or secrets that pass through those tools.
Index ¶
- func Capture(dir, name string, args ...string) (string, error)
- func CaptureEnv(dir string, env []string, name string, args ...string) (string, error)
- func Look(name string) bool
- func Run(dir, name string, args ...string) error
- func RunTee(dir string, env []string, name string, args ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture runs name+args in dir and returns combined output without streaming. Use for idempotent setup steps whose expected failures (e.g. "already exists") should not clutter the terminal.
func CaptureEnv ¶
CaptureEnv is Capture with extra environment entries ("KEY=value") appended to the inherited environment.
func Run ¶
Run executes name+args in dir, streaming stdio to the user. It returns an error if the tool is missing or exits non-zero.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.