template-rust-cli

This template repository contains a skeleton for command-line Rust projects.

Dependencies

It uses the following dependencies: * cmder * colored

cmder is used for argument parsing and colored provides a nice API for colorizing console output.

Layout

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

An example inspire command is provided for reference.

template-rust-cli-lib

Configuration

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.