暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

main.rs 330B

12345678910111213141516171819
  1. use std::process;
  2. use shell::Shell;
  3. use std::io;
  4. mod command;
  5. mod shell;
  6. fn main() {
  7. let stdin = io::stdin();
  8. let stdout = io::stdout();
  9. let mut s = Shell::new(stdin.lock(), stdout.lock(), "schell".to_string());
  10. match s.start() {
  11. Ok(_) => process::exit(0),
  12. Err(_) => process::exit(1),
  13. }
  14. }