Browse Source

feat: add shell error enum

main
fdai7381 2 years ago
parent
commit
acf60cc2d8
  1. 3
      src/error.rs
  2. 3
      src/main.rs

3
src/error.rs

@ -0,0 +1,3 @@
pub enum ShellError {
Execute(String),
}

3
src/main.rs

@ -1,3 +1,4 @@
mod error;
mod execute;
mod parse;
mod prompt;
@ -23,11 +24,9 @@ fn main() -> Result<()> {
}
}
Err(ReadlineError::Interrupted) => {
println!("CTRL-C");
break;
}
Err(ReadlineError::Eof) => {
println!("CTRL-D");
break;
}
Err(err) => {

Loading…
Cancel
Save