#gitignore #template #git #generator #template-generator #applications #gui-applications

app gitignored-cli

The CLI Application of Gitignored. Provide A Faster Way to Generate .gitignore File via Caching

9 releases

0.0.8 Mar 28, 2024
0.0.7 Mar 28, 2024
0.0.6 Sep 24, 2022
0.0.4 Aug 21, 2022

#301 in Development tools

Download history 85/week @ 2024-07-28 13/week @ 2024-09-22

270 downloads per month

Custom license

145KB
3.5K SLoC

Gitignored

An Offline-first CLI application that let the developer generate various .gitignore templates

The templates are taken from the web application Gitignored, which is the GUI application of this application. The TUI application is available here

Side note: The GUI application takes the templates from gitignore of Github

Here's what the developers can do with this application

  1. View the name of all available templates
  2. Search to find out whether a name of a template exists
  3. Preview each template(s) searched, it will include the closest template if there's typo in the name searched, i.e JetBrains for jetbrain
  4. Generate template(s) to a .gitignore file, will not override current .gitignore, pass --force to forcefully override
  5. Generate template(s) to a specified directory, i.e temp/temp1, it will auto generate at as temp/temp1/.gitignore
  6. Append template(s) to an existing .gitignore file, it will create one if it does not exist
  7. Append template(s) to an existing .gitignore file of a specified directory, again it will create one if it does not exist
  8. Update the cache to receive latest templates
  9. Uninstall and remove every cache
  10. Open home page/website of this application

You don't need to have an internet connection to use it, unless you want to update the cache

Note: gitignored-cli is a work-in-progress library, so expect breaking changes in its API

Default or Help

gitignored-cli

OR

gitignored-cli --help

Default or Help

Update Available

Update Available

Default Listing

gitignored-cli template --list

Default Listing

Listing with column number specified

gitignored-cli template --list --column 8

Column Listing

Search

gitignored-cli template --search rust node java vscode jetbrain whatever

Search

Preview

gitignored-cli template --preview rust node java vscode jetbrain

Preview

Default Generate

gitignored-cli template --generate rust node java vscode jetbrain whatever

Default Generate Error Default Generate

Abort Generate

gitignored-cli template --generate rust node java vscode jetbrain whatever

Abort Generate

Force Generate

gitignored-cli template --generate rust node java vscode jetbrain whatever --force

Force Generate

Generate with outdir specified

gitignored-cli template --generate rust node java vscode jetbrain whatever --outdir temp-dev/temp-two

Outdir generate

Default Append

gitignored-cli template --append rust node java vscode jetbrain whatever

Default Append

Abort Append

gitignored-cli template --append rust node java vscode jetbrain whatever

Abort Append

Append with outdir specified

gitignored-cli template --append rust node java vscode jetbrain whatever --outdir temp-dev/temp-two

Outdir Append

Updated Cache

gitignored-cli template --update

Updated

Updating Cache

gitignored-cli template --update

Updating

Open home page in browser

gitignored-cli open-link

Open Link

Uninstall

gitignored-cli uninstall

Uninstall

Of course, input validation

Input Validation

How To Use

Install it

cargo install gitignored-cli

Run it

gitignored-cli (commands)

Tech Used

Aspect Name
Language Rust
Linting Clippy
Format Rustfmt
Build Automation Tool Make
Package Manager Cargo
Continuous Integration GitHub Actions

Make Commands

Below are the listed commands that you can use to build/develop/test this app

Command Usage
make test-dev Run all test code in development environment
make test-prod Run all test code in ci-cd
make build Bundle, build and release the app as executable
make check Run compiler checking on code
make lint Run linter for code
make format Run formatter to format the code

Contribution

Make sure you can run make, otherwise you need to run commands listed in Makefile separately

  1. Open an issue
  2. Fork this repo
  3. Write test

Changes

Refer to here

Dependencies

~7–23MB
~289K SLoC