3) Command Docs - Jeck0v/Guts GitHub Wiki
How to run and test commands
Step 1: Compiling
cargo build --release
Step 2: Path
To simplify access, add the folder to your PATH (Adapt to your needs)
echo 'export PATH="$HOME/OneDrive/Bureau/Git-Rust/Guts/target/release:$PATH"' >> ~/.bashrc
source ~/.bashrc
This command adds the line to the end of your ~/.bashrc
file, so each time you open a terminal the folder containing guts
will be in the PATH.
source ~/.bashrc
reloads the config immediately in the current session.
Step 3: Test it !
You can check this with cargo test
or simply test cmd in your terminal.
After that, you can simply type :
guts help
guts init
guts hash-object README.md
guts cat-file