Skip to main content

Crate grex_plugins_builtin

Crate grex_plugins_builtin 

Source
Expand description

grex-plugins-builtin — built-in action primitives and pack-type handlers.

Stub crate reserved for v2 third-party plugin loading. In v1, all builtins live in grex-core::plugin and are re-exported here for forward-compat import paths.

M4-A: the Tier-1 action plugins (symlink, env, mkdir, rmdir, require, when, exec) live inside grex-core::plugin because the wet-run logic is already there; hoisting the structs alone into this crate would either force the executor free functions out of grex-core or create a circular grex-coregrex-plugins-builtin dependency. This crate therefore re-exports the canonical register_builtins path and the per-action plugin types so downstream CLI crates can bind to grex_plugins_builtin::... even while the implementations co-locate with the executor.

Structs§

EnvPlugin
Wet-run env plugin.
ExecPlugin
Wet-run exec plugin.
MkdirPlugin
Wet-run mkdir plugin.
Registry
In-process registry mapping action name → plugin.
RequirePlugin
require plugin (predicate gate; side-effect-free).
RmdirPlugin
Wet-run rmdir plugin.
SymlinkPlugin
Wet-run symlink plugin.
WhenPlugin
when plugin (conditional block; wet-run).

Traits§

ActionPlugin
Uniform registration surface for every Tier-1 action.

Functions§

register_builtins
Register all 7 Tier-1 built-in plugins in wet-run form.