Skip to content

Commit

Permalink
Merge branch 'feature/documentation' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
franccesco committed Aug 8, 2018
2 parents 6056645 + 634108c commit 3f92170
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 10 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Ignorio
*Manage your .gitignore with ease!*


**Ignorio** is a simple package to manage your [git exclusions](https://git-scm.com/docs/gitignore). This command line application helps you to download a template from [gitignore.io](http://gitignore.io/) without going to the site using the site's [API](https://www.gitignore.io/api/)

# Usage

## Add a language exclusion list
* You can add multiple languages to the exclusions list, just make sure they're listed on the supported list.

![](assets/add_lang.png)

## Append a language to the exclusion list
* You don't have to overwrite your current exclusion list, if you have added Python and SublimeText before then you can go right ahead and append Ruby to it.

![](assets/append_lang.png)

## Show supported languages
* Supported list of languages by gitignore.io, you can easily grep this data if you need to find a determined language.

![](assets/show_supported.png)

## Verbose for the paranoids
* And if you're paranoid enough or just like to see more data displayed on your terminal, well, check the `-v` flag.

![](assets/verbosity.png)

# How to contribute
* Fork it
* Make changes
* Make a pull request to the **develop** branch.

# Like the project?
If you like the project and would like to chip in a dolar or two, go ahead and do it here.

<a href="https://www.paypal.me/orozcofranccesco">
<img height="32" src="assets/paypal_badge.png" />
</a> <a href="https://www.buymeacoffee.com/franccesco" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a> <a href='https://ko-fi.com/V7V8AXFE' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi2.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
Empty file removed README.rst
Empty file.
Binary file added assets/add_lang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/append_lang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/paypal_badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/show_supported.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/verbosity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ignorio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""TODO: package description."""
"""Package containing CLI and Ignorio class."""
from .ignorio import Ignorio

__all__ = ['Ignorio']
Expand Down
2 changes: 1 addition & 1 deletion ignorio/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""TODO: Command Line Interface."""
"""Command Line Interface for Ignorio."""
import os
import click
from ignorio import Ignorio
Expand Down
24 changes: 19 additions & 5 deletions ignorio/ignorio.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
"""TODO: Ignorio package description."""
"""Manage .gitignore with Ignorio."""
from requests import get as rget


class Ignorio():
"""TODO: Ignorio class."""
"""Ignorio handles API requests from gitignore.io.
def __init__(self):
"""TODO: Ignorio initialization."""
supported_languages():
Return a list of supported languages.
def supported_languages(self):
count_languages():
Return a Integer of the number of languages supported.
is_lang_supported(lang):
Return True or False if a language is supported.
get_language_exclusion(langs):
Return a list with the exclusions templates.
write_gitignore():
Writes a template to the disk with the exlusion languages.
"""

@staticmethod
def supported_languages():
"""Get supported languages from gitignore.io.
example:
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[tool.poetry]
name = "ignorio"
version = "0.2.0"
description = ""
authors = ["Franccesco Orozco <franccesco.orozco@codingdose.info>"]
version = "0.2.1"
description = "Manage your .gitignore with ease!"
authors = ["Franccesco Orozco <franccesco@codingdose.info>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/franccesco/ignorio"
keywords = ["git", "gitignore", "exclusion", "vcs"]

[tool.poetry.dependencies]
python = "^3.4"
Expand Down

0 comments on commit 3f92170

Please sign in to comment.