Function garden::cmd::exec_in_context

source ·
pub fn exec_in_context<S>(
    app_context: &ApplicationContext,
    config: &Configuration,
    context: &TreeContext,
    quiet: bool,
    verbose: u8,
    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.