Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/welf/codecrafters-shell-rust
CodeCrafters challenge: Build your own Shell
https://github.com/welf/codecrafters-shell-rust
codecrafters codecrafters-shell rust
Last synced: 17 days ago
JSON representation
CodeCrafters challenge: Build your own Shell
- Host: GitHub
- URL: https://github.com/welf/codecrafters-shell-rust
- Owner: welf
- Created: 2024-05-25T04:57:40.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-05T20:39:21.000Z (8 months ago)
- Last Synced: 2024-11-11T17:20:51.022Z (3 months ago)
- Topics: codecrafters, codecrafters-shell, rust
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
- [Challenge Status](#challenge-status)
- [Running the Shell](#running-the-shell)[![progress-banner](https://backend.codecrafters.io/progress/shell/4ae060a4-3f40-417e-81a3-41b43fa10ab6)](https://app.codecrafters.io/users/welf?r=2qF)
This is a repo for Rust solutions to the
["Build Your Own Shell" Challenge](https://app.codecrafters.io/courses/shell/overview).# Challenge Status
The entry point for this `shell` implementation is in `src/main.rs`. This simple `shell`
implementation includes:
- [x] REPL implementation (run `./your_shell.sh` to start the REPL)
- [x] handling unknown commands
- [x] `echo`, `exit`, and `type` built-in commands
- [x] printing the full path to external executables if they are found in the PATH (run
`type mkdir` in the REPL as an example)
- [x] running external executables with arguments (run `ls -l -s` in the REPL as an
example)
- [x] implementing the `pwd` built-in command
- [x] implementing the `cd` built-in command# Running the Shell
1. Ensure you have `cargo (1.70)` installed locally
1. Run `./your_shell.sh` to run your program, which is implemented in
`src/main.rs`. This command compiles your Rust project, so it might be slow
the first time you run it. Subsequent runs will be fast.
1. Execute commands in the REPL that appears. You can run any command that you
would normally run in a shell.