- Configuration files - JSON/YAML config with environment variable overrides and profile system (local, CI, release)
- CI/CD - Automated checks, multi-platform releases, and code coverage
- Test patterns - Example integration tests in
tests/ - Self-upgrade - Upgrade in-place with built-in upgrade command
- Structured logging - Syslog levels and progressive verbosity
- Error handling - Type-safe errors with automatic propagation and context
run- Example file processing with structured outputupgrade- Self-upgrade from GitHub releases
- Clone this repository to your desired location:
git clone https://github.com/peridio/template-cli-rust.git my-cli cd my-cli - Remove the existing git history and start fresh:
rm -rf .git git init
- Run the template replacement script, it will describe usage:
./scripts/replace_templates.sh
- Run
cargo buildto verify everything compiles - Create your own repository and push:
git add . git commit -m "Initial commit from Rust CLI template" git remote add origin <your-repository-url> git push -u origin main
- Delete this section and update the README for your project