pub fn run(
        &self,
        name: &str,
        verbose: bool,
        output: &mut impl std::io::Write,
    ) -> Result<i32, String> {
        match self {
            Bone::Simple(core) => {
                // Execute the command core
                let exit_code = core.execute(name, verbose, output)?;
                // Return the exit code of the command sequence
                Ok(exit_code)
            }
            Bone::Complex(command) => {
                // If it's complex and thus recursive, we depend on the Bones language parser
                command.run(verbose, output)
            }
        }
    }
// Executes this command, returning its exit code
// This takes an optional buffer to write data about the command being executed in testing
Executes this command, returning its exit code
This takes an optional buffer to write data about the command being executed in testing
Executes this command returning its exit code This takes an optional buffer to write data about the command being executed in testing
pub fn run(
        &self,
        name: &str,
        verbose: bool,
        output: &mut impl std::io::Write,
    ) -> Result<i32, String> {
        match self {
            Bone::Simple(core) => {
                // Execute the command core
                let exit_code = core.execute(name, verbose, output)?;
                // Return the exit code of the command sequence
                Ok(exit_code)
            }
            Bone::Complex(command) => {
                // If it's complex and thus recursive, we depend on the Bones language parser
                command.run(verbose, output)
            }
        }
    }
pub fn run ( & self , name : & str , verbose : bool , output : & mut impl std :: io :: Write , ) -> Result < i32 , String > { match self { Bone :: Simple ( core ) => { // Execute the command core let exit_code = core . execute ( name , verbose , output ) ? ; // Return the exit code of the command sequence Ok ( exit_code ) } Bone :: Complex ( command ) => { // If it's complex and thus recursive, we depend on the Bones language parser command . run ( verbose , output ) } } }
Executes this command, returning its exit code
This takes an optional buffer to write data about the command being executed in testing
Executes this command returning its exit code This takes an optional buffer to write data about the command being executed in testing
&self
name
&str
verbose
bool
output
&mut impl std::io::Write