cli-gitignore
is a simple ignore file generator written in Rust.
https://github.com/Chloe199719/cli-gitignore
0.1.4
The tool provides several command-line options:
--help, -h
: Show the help message.--version, -v
: Show the version.--language, -l
: Specify a Programming Language (typescript, javascript, rust ,append). (append is used to not use a language template and append custom commands only)--remove, -r
: Remove the current .gitignore file if it exists and generate a new one.--custom, -c
: Add custom entries to the .gitignore file. Example:-c .idea .vscode
.
If no language is specified, the tool will prompt the user to enter a language. The tool currently supports generating .gitignore
files for Typescript, Javascript, and Rust.
- Clone the repository:
https://github.com/Chloe199719/cli-gitignore
- Build the project:
cargo build --release
- Run the executable:
./target/release/cli-gitignore
- Install the tool:
cargo install cli-gitignore
- Run the executable:
cli-gitignore
cli-gitignore -l typescript
cli-gitignore -l rust
cli-gitignore -l rust -c .idea .vscode
cli-gitignore -l append -c .idea .vscode