Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions src/gitgud/gitgud.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def parse_args(cmdname):
def fig(text):
fig = pyfiglet.Figlet()
return fig.renderText(text)

@staticmethod
def gud():
args = git.parse_args("good")
Expand All @@ -28,6 +28,17 @@ def gud():
text = git.fig(text)
print(text)

@staticmethod
def hyped():
args = git.parse_args("hyped")
name = args.name or "You"
sup = args.super
text = "{name} is bringing the hype!"

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

@staticmethod
def rekt():
args = git.parse_args("rekt")
Expand Down Expand Up @@ -56,19 +67,18 @@ def 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)

@staticmethod
def money():
args = git.parse_args("money")
name = args.name or "You"
sup = args.super
text = "{name} got money!".format(name=name)

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