use crate::command::{CommandSequence, UnixProgram}; pub fn parse_command_line(line: String) -> Option { let argv: Vec = line.split_whitespace().map(|s| s.to_string()).collect(); if !argv.is_empty() { let command = UnixProgram::new(argv); let command_sequence = CommandSequence::new(command); Some(command_sequence) } else { None } }