#command-line-tool #cli #angular #built #component #generate #angular-cli

app ngrust

A CLI tool inspired by Angular CLI, built with Rust

5 stable releases

1.0.5 Dec 1, 2023
1.0.4 Nov 30, 2023
1.0.3 Nov 25, 2023

#1844 in Command line utilities

35 downloads per month

MIT license

285KB
363 lines

image.png

ngrust

An Angular-CLI inspired tool built with Rust as a learning-project purpose

Crates.io

To use ngrust in your project, add the following to your Cargo.toml file:

[dependencies]
ngrust = "1.0.1"

Then, you can use the ngrust command in your terminal to generate new components:

ngrust --gc <COMPONENT_NAME>

GitHub

Clone the repository and install it locally:

git clone https://github.com/maxiim3/ngrust.git
cd ngrust

To test the CLI, run:

cargo run -- # Simulates ngrust
cargo run -- --gc # Simulates ngrust --gc

The -- flag is used to escape the cargo command.

Build and Install the Project

Build the project using the --release flag:

cargo build --release

This will create the executable binary inside /target/release/. Then, move the binary with sudo permission into your PATH. On macOS, it would be /usr/local/bin. Once you've done this, you should be able to use the ngrust command.

<style> *{ font-family:Inter, sans-serif; } h1, h2{ color:#93350d; } p{font-size:18px;} </style>

Dependencies

~6–14MB
~172K SLoC