fn prepare(&mut self) -> process::Command {

        // Create our batch file and record its location
        let batch_file_name = self.build_batch_file();
        println!("Filename: {}", batch_file_name.clone());
        self.cleanup_files.push(batch_file_name.clone());
        self.cleanup_files.push("{tmp_dir}\\{target_file}.json"
                                .replace("{tmp_dir}", &self.dirs.tmp.to_string())
                                .replace("{target_file}", &self.target_file.to_string()));

        // Create our command
        println!("Creating command");
        let command = commands::build_start_command(batch_file_name);
        return command;
    }
// Sets up all our requirements and returns our command handler
Sets up all our requirements and returns our command handler
Sets up all our requirements and returns our command handler
fn prepare(&mut self) -> process::Command {
        // Create our batch file and record its location
        let batch_file_name = self.build_batch_file();
        println!("Filename: {}", batch_file_name.clone());
        self.cleanup_files.push(batch_file_name.clone());
        self.cleanup_files.push("{tmp_dir}\\{target_file}.json"
                                .replace("{tmp_dir}", &self.dirs.tmp.to_string())
                                .replace("{target_file}", &self.target_file.to_string()));
        // Create our command
        println!("Creating command");
        let command = commands::build_start_command(batch_file_name);
        return command;
    }
fn prepare ( & mut self ) -> process :: Command { // Create our batch file and record its location let batch_file_name = self . build_batch_file ( ) ; println ! ( " " batch_file_name clone ( ) ) ; self . cleanup_files . push ( batch_file_name . clone ( ) ) ; self . cleanup_files . push ( " \\ " . replace ( " " , & self . dirs . tmp . to_string ( ) ) . replace ( " " , & self . target_file . to_string ( ) ) ) ; // Create our command println ! ( " " ) ; let command = commands :: build_start_command ( batch_file_name ) ; return command ; }
Sets up all our requirements and returns our command handler
Sets up all our requirements and returns our command handler
&mut self
&mut self