Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 853 Bytes

File metadata and controls

19 lines (13 loc) · 853 Bytes

Rust CLI Template

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!

Usage

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