Documentation
¶
Overview ¶
Package fallback drives the embedded Task runtime as a backstop when wake encounters a Taskfile feature it doesn't implement itself (dotenv, requires, interval, run modes other than "always", short, defer, non-interleaved output). The Task runtime is compiled into wails3 — there is no external `task` binary to look for — so this is an in-process call, not a subprocess.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Available ¶
func Available() bool
Available used to report whether an external `task` binary was on PATH. The embedded runtime is always available; keeping the function so existing callers compile without churn.
func TaskCLI ¶
TaskCLI runs the named task using the in-process Task runtime, applying any `KEY=VALUE` strings in env as Taskfile-level CLI variables (matching the semantics of `task NAME KEY=VALUE`). dir is the working directory; the empty string falls through to the Taskfile's own root_path / discovery.
Naming carries the historical "CLI" suffix because the function used to shell out to an external `task` binary. It hasn't done that since this commit — the Task runtime is embedded.
Types ¶
type ErrUnsupported ¶
type ErrUnsupported struct {
Feature string
}
ErrUnsupported is the sentinel a wake caller may wrap when bailing out to the Task runtime. Kept for backwards compatibility with the previous package surface; nothing in the new fallback path returns it directly.
func (*ErrUnsupported) Error ¶
func (e *ErrUnsupported) Error() string