Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvinciguerra/gitignore-cli
🛑 A ruby cli tool that use gitignore.io to generate your gitignore files
https://github.com/dvinciguerra/gitignore-cli
cli git gitignore gitignore-cli gitignore-generator ruby term-ui
Last synced: 26 days ago
JSON representation
🛑 A ruby cli tool that use gitignore.io to generate your gitignore files
- Host: GitHub
- URL: https://github.com/dvinciguerra/gitignore-cli
- Owner: dvinciguerra
- License: mit
- Created: 2020-02-05T16:34:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T10:16:51.000Z (over 1 year ago)
- Last Synced: 2024-09-29T11:45:33.751Z (about 1 month ago)
- Topics: cli, git, gitignore, gitignore-cli, gitignore-generator, ruby, term-ui
- Language: Ruby
- Homepage: https://rubygems.org/gems/gitignore-cli
- Size: 42 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 🛑 gitignore-cli
[![Gem Version](https://badge.fury.io/rb/gitignore-cli.svg)](https://badge.fury.io/rb/gitignore-cli)
[![Maintainability](https://api.codeclimate.com/v1/badges/48ed1e9f5ee6d37590f5/maintainability)](https://codeclimate.com/github/dvinciguerra/gitignore-cli/maintainability)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)Provides a simple CLI that uses the fantastic `gitignore.io` tool to generate `.gitignore` files for your project.
[![asciicast](https://asciinema.org/a/299023.svg)](https://asciinema.org/a/299023?autoplay=1&speed=2)
## Installation
You will need to have `ruby >= 2.3`, or running on Docker.
```shellscript
$ gem install gitignore-cli
```## Usage
You can use the following commands:
#### gitignore list
The command `list` will return all available environments.
**Example:**
```shellscript
$ gitignore list
```#### gitignore create
Generates the .gitignore output using an interactive term ui.
```shellscript
$ gitignore create
```#### gitignore generate [environments]
Generates the .gitignore output to stdout using all environments that you choose.
```shellscript
$ gitignore generate ruby vim node > .gitignore
```## Author
Daniel Vinciguerra
### Special Thanks
* [Joe Blau](https://github.com/joeblau) for [gitignore.io](https://gitignore.io).
* [Tejas Kumar](https://github.com/TejasQ) for the inspiration, [at TejasQ/add-gitignore](https://github.com/TejasQ/add-gitignore)## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).