Add echo command

This commit is contained in:
g1n 2021-07-19 15:11:07 +00:00
parent cece3dfa54
commit 43e82b822b
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ fn main() {
let args = parts;
match command {
"echo" => {
println!("{}", args.peekable().peek().map_or("/", |x| *x));
},
"cd" => {
let new_dir = args.peekable().peek().map_or("/", |x| *x);
let root = Path::new(new_dir);