pub struct CommandNode {Show 14 fields
pub os: Vec<String>,
pub about: String,
pub path: Option<String>,
pub dependencies: Vec<String>,
pub requires: Vec<String>,
pub env: EnvSpec,
pub inputs: BTreeMap<String, InputDef>,
pub cron: Vec<String>,
pub packages: PackagesSpec,
pub tests: BTreeMap<String, CommandTest>,
pub aliases: AliasesSpec,
pub commands: BTreeMap<String, CommandNode>,
pub exec: Option<ExecSpec>,
pub source: Option<IncludeLink>,
}Fields§
§os: Vec<String>If non-empty, this command and its subtree are only offered on these
platforms (linux, macos, windows, …). darwin is accepted as an alias for macos.
about: String§path: Option<String>Directory prepended to PATH when this script (or a descendant leaf) runs.
dependencies: Vec<String>Other script names whose path directories are prepended before this one runs.
requires: Vec<String>External binaries that must be on PATH (e.g. fzf, jq) before the leaf runs.
env: EnvSpecPublic assignments and/or private names required from the host environment.
inputs: BTreeMap<String, InputDef>Named CLI inputs (--name value) available as ${{ inputs.name }} in env/argv.
cron: Vec<String>Optional crontab schedule(s). When set, jan cron runs this script’s run
leaf whenever the local time matches any expression.
packages: PackagesSpecPackage-manager dependencies (uv now; pnpm reserved).
tests: BTreeMap<String, CommandTest>Optional Given/When/Then shell tests (jan test <path>).
aliases: AliasesSpecExtra jan names and/or traditional shell aliases (jan alias).
commands: BTreeMap<String, CommandNode>§exec: Option<ExecSpec>§source: Option<IncludeLink>Include link this node was loaded from, if any (filled by the loader).
Implementations§
Trait Implementations§
Source§impl Clone for CommandNode
impl Clone for CommandNode
Source§fn clone(&self) -> CommandNode
fn clone(&self) -> CommandNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more