pub struct CommandEffects {
pub observation_only: bool,
pub deletes: bool,
pub local_work_only: bool,
pub delete_targets: Option<Vec<String>>,
pub runs_project_code: bool,
}Fields§
§observation_only: boolEvery executable is a known observer used in a known observing shape.
deletes: boolSome command removes files (rm, find -delete, git clean, …),
including behind wrappers and groupings.
local_work_only: boolEvery command is ordinary local work: an exact LOCAL_WORK program
in an allowed shape, or an observation. Fail closed like
observation_only, except that output redirection into files and
newline-separated scripts are allowed.
delete_targets: Option<Vec<String>>The paths deleting commands name, as written. None when a delete
target cannot be read structurally (variables, substitutions, piped
arguments, git clean).
runs_project_code: boolSome command runs code the project defines: a build or test runner
(make, cargo build, npm run, pytest, …) executes the
project’s own build scripts, tests and hooks, and an interpreter
handed a script runs that script. Local work by its shape, but what
it does is whatever the project’s files say, so on an unconfined
host it can reach anything. Over-reports (wrappers and groupings are
unwrapped) rather than miss.