blob: f69aced363d45fcfc84c2c1a666bc3ec2726a7f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// > overwrite
// >> append
// | pipe
// && on prev cmd okay
// || on prev cmd fail
pub fn parse(line: &std::string::String) -> Vec<&str> {
line.split(' ').collect()
/* let mut pipe_append = line.split(">>").peekable();
if let Some(f) = pipe_append.next() {
println!("append to: {:?}", pipe_append.peek());
let mut commands = f.trim().split(" | ").peekable();
while let Some(command) = commands.next() {
println!("run {}", command);
}
}*/
}
|