pub struct PreparedTask {Show 16 fields
pub id: String,
pub commands: Vec<String>,
pub parallel: bool,
pub cwd: PathBuf,
pub env: BTreeMap<OsString, OsString>,
pub runtime_env: BTreeMap<OsString, OsString>,
pub node_path: Option<NodePath>,
pub execution: BTreeMap<OsString, OsString>,
pub ready_when: Vec<String>,
pub ready: Arc<AtomicBool>,
pub processes: Arc<Mutex<BTreeSet<u32>>>,
pub decorations: Vec<Decoration>,
pub interactive: bool,
pub sandbox: Option<Confinement>,
pub recording: Option<Recording>,
pub display: Display,
}Fields§
§id: String§commands: Vec<String>§parallel: bool§cwd: PathBuf§env: BTreeMap<OsString, OsString>§runtime_env: BTreeMap<OsString, OsString>Dotenv, explicit settings and local binary lookup without task metadata.
node_path: Option<NodePath>§execution: BTreeMap<OsString, OsString>Variables set for the process after env that are not part of what
the task is: nothing reads them to key it, such as a thread count.
ready_when: Vec<String>Nx’s readyWhen: text whose appearance in the output, every piece of
it, makes the task ready while its commands keep running.
ready: Arc<AtomicBool>Set once all of ready_when has appeared.
processes: Arc<Mutex<BTreeSet<u32>>>The process ids of its commands while they run, from which the runner measures the memory the task uses.
decorations: Vec<Decoration>Each command’s prefix and colours, by position; empty without any.
interactive: boolWhether the task reads qk’s stdin, and has the terminal while it runs. The runner sets it for the one task a run is for, when that task has a single command whose output goes straight to the terminal.
sandbox: Option<Confinement>What the commands run under, for --sandbox.
recording: Option<Recording>§display: DisplayHow the task’s output is shown; the runner sets it per output style.