A very basic utility to setup predicatble directory patterns
for starting new projects. Also, an excuse to learn Rust
!
This project is just getting started, and I hope to use it as an application
and framework to learn more Rust
along the way. In the meantime, I'll try to make
this useful with what I know, and update as I go along my journey. :)
- Clone the
projmake
repository, and enter the repo directory
git clone git@github.com:jdub-2000/projmake.git &&
cd projmake
- Compile
projmake
usingcargo
; if you don't haveRust
orcargo
installed, see the instructions, here.
cargo build --release
if all goes well, a binary will placed in the following directory:
/projmake/target/release/projmake
- Make a copy of that binary and place it in the
/usr/bin
directory:
sudo cp <full_path_to>/projmake/target/release/projmake /usr/bin/
- Exit the terminal
exit
You should now be able to invoke the compiled binary no matter where you "are" in the filesystem. See below for Usage instructions.
To make a new project:
projmake foo
This yields a directory with the following structure:
foo
├── CODE
├── DAT
├── DOC
└── PROD
I know, not too imppressive, but its a start and a big timesaver for me :) I hope to make some new feature available soon!
-
For help with
Rust/Cargo
installation, consult their very nice guide, here. -
Rust
standard documentation for thefs
Module