From d1d2326669b35bc5acd6d565814925e40c7bdb5a Mon Sep 17 00:00:00 2001 From: Eric Westbrook Date: Fri, 11 Aug 2017 12:42:48 -0500 Subject: [PATCH] git hyped --- src/gitgud/gitgud.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/gitgud/gitgud.py b/src/gitgud/gitgud.py index de49e3c..d741319 100644 --- a/src/gitgud/gitgud.py +++ b/src/gitgud/gitgud.py @@ -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") @@ -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") @@ -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) -