This is a simple Rust CLI template which I am using for my projects like those in my shellshape collection.
This template is based on Clap in combination with Figment and dirs for parsing configuration files. Also, anyhow is used for basic error handling.
Feel free to use this template as basis for your own projects!
First of all, you need cargo-generate to be installed.
cargo install cargo-generate
Now, you can simply use the following command to bootstrap your project with this template.
cargo generate --git https://github.com/shellshape/rust-cli-template template