https://github.com/calvinsprouse/ignorepy
Generate a .gitignore from command line tags using gitignore.io.
https://github.com/calvinsprouse/ignorepy
cli github gitignore gitignore-cli gitignore-generator python
Last synced: about 1 year ago
JSON representation
Generate a .gitignore from command line tags using gitignore.io.
- Host: GitHub
- URL: https://github.com/calvinsprouse/ignorepy
- Owner: CalvinSprouse
- License: mit
- Created: 2023-07-26T20:29:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T13:32:34.000Z (over 2 years ago)
- Last Synced: 2025-02-08T03:16:10.109Z (about 1 year ago)
- Topics: cli, github, gitignore, gitignore-cli, gitignore-generator, python
- Language: Python
- Homepage: https://pypi.org/project/ignorepy/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ignorepy
Generate a .gitignore from the command line.
## Installation
Install with pip:
``` bash
pip install ignorepy
```
## Usage
After installing run:
``` bash
ignorepy tag1 tag2 tag3
```
A .gitignore file will be generated from [gitignore.io](https://www.toptal.com/developers/gitignore) with the specified tags and copied to the clipboard.
Additionally pass -s
``` bash
ignorepy tag1 tag2 tag3 -s
```
and the tags will be saved as default tag.
Then the program can be called with
``` bash
ignorepy
```
and the default tags will be automatically loaded.
Additionally pass -f
``` bash
ignorepy tag1 tag2 tag3 -f
```
and instead of being copied to the clipboard the .gitignore file will be written to .gitignore in the current working directory.