C.R.S.
Create a new project from a template
Why another project generator ?
It's inspired of cookiecutter
(#20). It's written in rust for safety and rapidity. CRS can run hooks before and after (#21) the generation. CRS use handelbars template language.
Installation
From crates.io
You can simply run cargo install crs
and you'll have a crs
command in your PATH. After that, you can use crs
to generate a project.
cargo install crs
crs --help
As binary
You can download it on release page and simply run the binary
WARNING: not ready yet
wget https://github.com/0xMRTT/crs/
chmod +x crs
./crs
From source
git clone https://github.com/0xMRTT/crs.git
cd crs
cargo b
And finally run crs
./target/debug/crs
Usage
$ crs https://github.com/0xMRTT/rust-template
$ crs -h
crs 0.1.0
USAGE:
crs [OPTIONS] [TEMPLATE_URL]
ARGS:
<TEMPLATE_URL> Optional name to operate on
OPTIONS:
-c, --config <FILE> Sets a custom config file
-h, --help Print help information
-l, --list-installed <DIR> List installed template
-t, --to <TO> Where CRS will generate the new project
-V, --version Print version information
Thanks
This project is inspired to this awesome projects:
- cookiecutter
And thanks to the creators and contributors of this awesome rust crates:
- handlebars
- serde_json
- serde_derive
- serde
- env_logger
- git2
- clap
- url
- walkdir
- platform-dirs
- chrono
- inquire
- regex
- execute
- fs_extra