Brix is a CLI tool written in Rust for scaffolding and code generation.
Special thanks to Caleb Cushing for the original Java version, early interface design and internal architecture.
Brix is available on crates.io and the AUR for Arch Linux.
Install with cargo:
cargo install brix
Arch Linux (use an AUR helper like yay
or trizen
)
yay -S brix-git
Usage:
brix [LANGUAGE] [CONFIG NAME] [PROJECT] [MODULE]
brix [OPTIONS] --config-dir | -d [CONFIG DIRECTORY]
brix [OPTIONS] --workdir | -w [WORKING DIRECTORY]
cargo build
cargo run
Run cargo test --all
to test the entire workspace.
Run cargo doc --no-deps --workspace --document-private-items --open
There are a few examples located in ./config/brix/rust
.
cargo run -- rust copy brix foo
cargo run -- rust exec foo foo
cargo run -- rust mkdir brix foo
cargo run -- rust search_replace brix foo
cargo run -- rust template brix foo