Skip to content

Commit

Permalink
added git job function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-McBride committed Aug 20, 2015
1 parent 045ae56 commit c998e8b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
git gud m8!
===========

> alternatively, git #rekt
> alternatively, git #rekt, git job
Ever been told to "git gud" or "git rekt" but you only ever get an
Ever been told to "git gud", "git rekt", or "git job" but you only ever get an
error when you try?

fsufitch@boring:~$ git gud
git: 'gud' is not a git command. See 'git --help'.
fsufitch@boring:~$ git rekt
git: 'rekt' is not a git command. See 'git --help'.
fsufitch@boring:~$ git job
git: 'job' is not a git command. See 'git --help'.

You don't have to suffer anymore!

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
entry_points = {
"console_scripts": [
"git-gud=gitgud.gitgud:git.gud",
"git-rekt=gitgud.gitgud:git.rekt"
"git-rekt=gitgud.gitgud:git.rekt",
"git-job=gitgud.gitgud:git.job"
],
},

Expand Down
12 changes: 12 additions & 0 deletions src/gitgud/gitgud.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ def rekt():
if sup:
text = git.fig(text)
print(text)

@staticmethod
def job():
args = git.parse_args("job")
name = args.name or "You"
sup = args.super
text = "{name} got a job in gitting #rekt!".format(name=name)

if sup:
text = git.fig(text)
print(text)

0 comments on commit c998e8b

Please sign in to comment.