replicate is a tool to generate a more general version of its own command line interface.
$ brew install ericdeansanchez/heimdallr/replicate
You can also clone the repository:
$ git clone https://github.com/ericdeansanchez/replicate.git
And then,
$ cargo run cli <name of your app>
Running $ replicate cli app will generate a rust crate with
the structure depicted below:
app/
├── Cargo.toml
└── src
├── app
│ ├── lib.rs
│ └── util
│ ├── command_prelude.rs
│ ├── errors.rs
│ └── mod.rs
└── bin
└── app
├── cli.rs
├── commands
│ ├── init.rs
│ └── mod.rs
└── main.rs
Contributions are welcome! No contribution is too small––bug fix, a new feature, or a typo fix––all are welcome.
replicate is written in Rust so make sure you have Rust installed.
Clone the repository:
$ git clone https://github.com/ericdeansanchez/replicate.gitcd into the repository and run:
$ cargo buildEnsure the tests pass on your system (please open an issue if they do not):
$ cargo testThese are the docs you really want. Copy & paste the command below in your
terminal. Make sure --no-deps is passed otherwise you'll build documentation
for all/any dependencies.
$ cargo doc --no-deps --open