Contents
About
Package bootstrap is an embeddable installer for Rust binaries that allows the reuse of the code in your project to generate shell completions, manpages and other artifacts and install them into directories appropriate for a Unix system.
Usage
# Cargo.toml
[[]]
= "bootstrap"
= "src/bootstrap.rs
[]
= "0.1"
= ["complete", "mangen"]
// bootstrap.rs
use Command;
use Bootstrap;
With a little extra setup, bootstrap can use the same function as your binary to
generate the clap::Command
struct.
# Cargo.toml
[]
= "cli"
[]
= 4.1
= { = "cli" }
// cli/src/lib.rs
Features
- default: complete - generates and installs shell completions from your clap::Command struct
- mangen: - generates and installs a Unix manual page from your clap::Command struct
Supported shells:
- bash
- elvish
- fish
- nushell
- powershell
- zsh