https://github.com/josefdolezal/ignorio
Gitignore.io command line client written in Swift.
https://github.com/josefdolezal/ignorio
gitignore gitignore-generator gitignore-templates swift swift-package-manager
Last synced: about 23 hours ago
JSON representation
Gitignore.io command line client written in Swift.
- Host: GitHub
- URL: https://github.com/josefdolezal/ignorio
- Owner: josefdolezal
- License: mit
- Created: 2017-05-31T09:54:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T21:25:58.000Z (over 3 years ago)
- Last Synced: 2024-03-15T11:50:00.705Z (over 1 year ago)
- Topics: gitignore, gitignore-generator, gitignore-templates, swift, swift-package-manager
- Language: Swift
- Homepage: https://github.com/josefdolezal/ignorio
- Size: 799 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ignorio is a pure Swift command line tool helping you create `.gitignore` file for your project based on templates from [gitignore.io](https://gitignore.io).
For basic usage, just run:
```bash
$ ignorio create macos xcode swift > .gitignore
```This will fetch a `.gitignore` template for list of given types. The template will be printed to the standard output so be sure to redirect it into your `.gitignore`.
## Install
Brew
The recommended way to install `ignorio` is with brew package manager:
```bash
$ brew install josefdolezal/formulae/ignorio
```Or you can add the custom Tap and refer to the app by its name:
```bash
$ brew tap josefdolezal/formulae
$ brew install ignorio
```From source
If you prefer to build the app from source manually, you can use `make`:
```bash
$ make
$ swift run ignorio
```## Usage
Currently, following commands are supported by ignorio.
### Generate
Fetches `.gitignore` template for given list of types.
```bash
$ ignorio generate macos xcode swift
```### List
Prints list of types which may be used to create template.
```bash
$ ignorio list
```### Search
Not sure if your type is supported? The list representation is not so convenient, but you can use search instead!
```bash
$ ignorio search swift
```## Dependencies
Ignorio is build on top of following dependencies:
- [Swift Argument Parser](https://github.com/apple/swift-argument-parser), licensed under `Apache License 2.0`
## License
This repository is licensed under [MIT](LICENSE).