Compare commits

..

4 commits

4 changed files with 6 additions and 5 deletions

2
Cargo.lock generated
View file

@ -4,4 +4,4 @@ version = 3
[[package]]
name = "rash"
version = "0.1.0"
version = "0.2.0"

View file

@ -1,6 +1,6 @@
[package]
name = "rash"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -6,7 +6,8 @@ I want to learn Rust and see how much effort I can put into making an interopera
# Roadmap
- [ ] Execute commands
- [x] Execute commands
- [ ] Parse commands
- [ ] Variables
- [ ] Environment variables
- [ ] Builtins
@ -14,6 +15,5 @@ I want to learn Rust and see how much effort I can put into making an interopera
- [ ] `set`
- [ ] `alias`
- [ ] `type`
- [ ] Parse commands
- [ ] Command-line flags
- [ ] PS1

View file

@ -58,7 +58,8 @@ impl Command for UnixProgram {
exit_code
} else {
error::print_error(format!("{}: command not found", program));
let message = format!("{}: command not found", &program);
error::print_error(message);
ExitCode::new(127)
}
}