INNER CODE UNIT · Rust
exit_code
sharkdp/fd · src/exec/mod.rs:205
fn exit_code(&self) -> ExitCode {
self.exit_code
}
}
/// Represents a template that is utilized to generate command strings.
///
/// The template is meant to be coupled with an input in order to generate a command. The
/// `generate_and_execute()` method will be used to generate a command and execute it.
#[derive(Debug, Clone, PartialEq)]
struct CommandTemplate {
args: Vec<FormatTemplate>,
}
impl CommandTemplate {
fn new<I, S>(input: I, mode: ExecutionMode) -> Result<CommandTemplate>
where
I: IntoIterator<Item = S>,