This template repository contains a skeleton for command-line Rust projects.
It uses the following dependencies: * cmder * colored
cmder
is used for argument parsing and colored
provides a nice API for colorizing console output.
There are 2 crates in the skeleton.
1. template-rust-cli
is the main crate that contains your console application.
2. template-rust-cli-lib
is the crate that contains your application logic.
template-rust-cli
src/cmd
directory.src/cmd/mod.rs
and re-export the function from that crate.src/main.rs
.An example inspire
command is provided for reference.
template-rust-cli-lib
prelude
module.If you have Python installed, you can configure your repository faster with the configure.py
script:
sh
python3 ./configure.py
This will ask for your project's name, description and author and replace the default values with your own.