Skip to main content

Module task

Module task 

Source
Expand description

shine task — a lightweight personal shortcut-command registry.

Tasks are user runtime state (stored in <shine_dir>/tasks.toml, see manifest), not embedded presets. Commands are saved as an argv array and executed directly with no shell (std::process::Command), inheriting the caller’s stdio and environment. A task may store an optional fixed working directory; otherwise it runs in the caller’s current directory. Users who need shell syntax (pipes, redirects, globbing) save an explicit sh -c '...' invocation.

shine run <name> is a top-level alias for shine task run <name>; it has no independent semantics or storage.

Platform note: direct execution runs any real executable on every platform, but the sh -c '...' escape hatch is Unix-only (Windows has no sh).

Modules§

manifest
Persisted registry of personal shortcut tasks (<shine_dir>/tasks.toml), keyed by task name. Read/written by the shine task handlers. Machine-managed runtime state (not an embedded preset), so it follows SHINE_CONFIG_DIR via Config::shine_dir() and does not preserve user-authored comments.

Functions§

handle_delete
handle_info
handle_list
handle_run
handle_save