This crate is structured like:
shell---shell-main (The main binary)
|
|-shell-api (The common api)
|
|-scripts (The scritps directory)
To test this example:
- Enter shell directory
cd shell - Compile the workspace
cargo b - The main crate expects the scripts to be in
/tmp/rscript_shell(or the platform equivalent), so we create itmkdir /tmp/rscript_shelland we can just cp the scripts or symlink itln -s target/debug/eval-script /tmp/rscript_shellln -s target/debug/random-script /tmp/rscript_shell - Now we can run the main binary
cargo r --bin shell-main, you can try inputing some random command (lsfor example) and hit enter.