use crate::command::command_builder::CommandBuilder; use crate::command::command_sequence::CommandSequence; 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 = CommandBuilder::new(argv).build(); Some(CommandSequence::new(command)) } else { None } }