fn add_task(&mut self, name: String, exec: String) -> Vec<Command> {
        let command = Command::new(name, exec);
        self.commands.push(command);
        self.commands.to_vec()
    }
// For adding a task to the tasks vector
For adding a task to the tasks vector
For adding a task to the tasks vector
fn add_task(&mut self, name: String, exec: String) -> Vec<Command> {
        let command = Command::new(name, exec);
        self.commands.push(command);
        self.commands.to_vec()
    }
fn add_task ( & mut self , name : String , exec : String ) -> Vec < Command > { let command = Command :: new ( name , exec ) ; self . commands . push ( command ) ; self . commands . to_vec ( ) }
For adding a task to the tasks vector
For adding a task to the tasks vector
&mut self
name
String
exec
String
&mut self
name
String
exec
String