1
2
3
4
5
6
7
pub trait ToCommand {
    fn to_command(&self) -> Vec<String>;

    fn to_single_command(&self) -> String {
        self.to_command().join(" ")
    }
}