# git-genignores

A small program to automatically download the required gitignore file from the
@github/gitignores directory.

# Usage
`git genignores [options] LANGUAGE`

# Installation
```sh
cd $SOME_DIR
curl --remote-name https://raw.githubusercontent.com/pbhandari/git-genignores/master/git-genignores
```

**Note**: Make sure that `$SOME_DIR` is in `$PATH` if you want to call this as
`git genignores`.

# Examples
```sh
# Print out gitignores for Ada, Perl and Ruby
git genignores ada perl ruby

# Save the gitignores to a file
git genignores python > .gitignore

# Check whether the gitignore for Perl and Python
# exists in the server
git genignores --list perl python
```

# TODO
 - [x] Allow support for `--list`.
 - [ ] Add tests to make my life easier.
 - [ ] Add an `--output-file` option.
 - [x] Allow downloads from places other than github's gitignores directory.
 - [ ] Allow for configurations to be read from git's default config files
 - [ ] `--list` is a stupid name, change it to something sane

# git-genignores

A small program to automatically download the required gitignore file from the
@github/gitignores directory.

# Usage
```
Usage: git genignores [OPTIONS] LANGUAGE
    -l, --list                       Check whether the server has that particular gitignore file.
        --[no-]capitalize            Don't auto capitalize.
    -s, --server SERVER              The server to query the gitignores from
    -p, --port PORT                  The port to connect on.
        --[no-]ssl                   Use SSL to connect to the [SERVER]
    -f, --format FORMAT              The format used to query the SERVER for the files.
        --header FORMAT              The format string to give to the server.
        --footer FORMAT              The format string to give to the server.
    -h                               Displays help.
```
**Note** `--help` doesn't work since git tries to look for a man page for
this.

# Installation
```sh
cd $SOME_DIR
curl --remote-name https://raw.githubusercontent.com/pbhandari/git-genignores/master/git-genignores
```

**Note**: Make sure that `$SOME_DIR` is in `$PATH` if you want to call this as
`git genignores`.

# Examples
```sh
# Print out gitignores for Ada, Perl and Ruby
git genignores ada perl ruby

# Save the gitignores to a file
git genignores python > .gitignore

# Check whether the gitignore for Perl and Python
# exists in the server
git genignores --list perl python
```

# TODO
 - [x] Allow support for `--list`.
 - [ ] Add tests to make my life easier.
 - [ ] Add an `--output-file` option.
 - [x] Allow downloads from places other than github's gitignores directory.
 - [ ] Allow for configurations to be read from git's default config files
 - [ ] `--list` is a stupid name, change it to something sane

Fix Usage section to list options.
Fix Usage section to list options.
