pub struct CommandNode {
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 commands: BTreeMap<String, CommandNode>,
pub exec: Option<ExecSpec>,
}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.
commands: BTreeMap<String, CommandNode>§exec: Option<ExecSpec>Implementations§
Trait Implementations§
Source§impl Clone for CommandNode
impl Clone for CommandNode
Source§fn clone(&self) -> CommandNode
fn clone(&self) -> CommandNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandNode
impl Debug for CommandNode
Source§impl Default for CommandNode
impl Default for CommandNode
Source§fn default() -> CommandNode
fn default() -> CommandNode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandNode
impl<'de> Deserialize<'de> for CommandNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandNode
impl RefUnwindSafe for CommandNode
impl Send for CommandNode
impl Sync for CommandNode
impl Unpin for CommandNode
impl UnsafeUnpin for CommandNode
impl UnwindSafe for CommandNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more