Function garden::cmd::exec_in_context
source · [−]pub fn exec_in_context<S>(
config: &mut Configuration,
context: &TreeContext,
quiet: bool,
verbose: bool,
command: &[S]
) -> Result<(), GardenError> where
S: AsRef<OsStr>,
Expand description
Run a command in the specified tree context. Parameters:
- config: Mutable reference to a Configuration.
- context: Reference to the TreeContext to evaluate.
- quiet: Suppress messages when set true.
- verbose: increase verbosity of messages.
- command: String vector of the command to run.