Create .gitignore files with ease from your command line!
Ignoro is a command line interface designed to help you quickly create and modify .gitignore files for your projects. The CLI uses one or more of the 550+ templates supplied by gitignore.io to craft the perfect .gitignore for your project.
- Search for templates at gitignore.io.
- Show the content of a template from gitignore.io.
- Create a
.gitignorefile based on one or more templates. - List templates used in a
.gitignorefile. - Add one or more templates to a
.gitignorefile. - Remove one or more templates from a
.gitignorefile.
Using pipx (recommended)
pipx install ignoroUsing pip
pip install --user ignoroCreate or modify a .gitignore file based on templates from gitignore.io.
ignoro [OPTIONS] COMMAND [ARGS]...
Options
--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands
add: Add templates to a.gitignorefile.create: Create a.gitignorefile.list: List templates in a.gitignorefile.remove: Remove templates from a.gitignorefile.search: Search for templates at gitignore.io.
Add templates to a .gitignore file. If no path is provided, the templates will be added to the .gitignore file in the current directory.
ignoro add [OPTIONS] TEMPLATES...Arguments
TEMPLATES: Templates to add to.gitignorefile. [required]
Options
--path: Add templates to.gitignorefile at this path.--show-gitignore: Show the result of the add command instead of writing a file.--help: Show this message and exit.
Create a .gitignore file. If no path is provided, the .gitignore file will be created in the current directory.
ignoro create [OPTIONS] TEMPLATES...Arguments
TEMPLATES: Templates to include in.gitignorefile. [required]
Options
--path: Create a.gitignorefile at this path.--show-gitignore: Show the result of the create command instead of writing a file.--help: Show this message and exit.
List templates in a .gitignore file. If no path is provided, the templates from the .gitignore file in the current directory will be listed.
ignoro list [OPTIONS]Options
--path: List templates in.gitignorefile at this path.--help: Show this message and exit.
Remove templates from a .gitignore file. If no path is provided, the templates will be removed from the .gitignore file in the current directory.
ignoro remove [OPTIONS] TEMPLATES...Arguments
TEMPLATES: Templates to remove from.gitignorefile. [required]
Options
-
--path: Remove templates from.gitignorefile at this path. -
--show-gitignore: Show the result of the remove command instead of writing a file. -
--help: Show this message and exit.’
Search for templates at gitignore.io. If no search term is provided, all available templates will be listed.
ignoro search [OPTIONS] [TERM]Arguments
TERM: Term used to search gitignore.io.
Options
--help: Show this message and exit.’
Show a template from gitignore.io. If no no match is found, an error will be raised.
ignoro show [OPTIONS] TEMPLATEArguments
TEMPLATE: Template to show from gitignore.io. [required]
Options
--help: Show this message and exit.
Setup
Ignoro uses PDM to manage dependencies and virtual environments. To get started, first install PDM. Then, install the project dependencies using the command:
pdm installRun
To run the CLI, use the command:
pdm run ignoroTest
Ignoro uses pytest for testing. To run the test suite, use the following command:
pdm run pytest .Formating and Linting
Ignoro uses Ruff for formatting and linting. To run the formating and linting checks, use the following command:
pdm run ruff format .
pdm run ruff check .Ignoro is licensed under the MIT License.