add double dots to welcome

This commit is contained in:
Daylin Morgan 2022-07-12 12:11:51 -05:00
parent d38e26bf5d
commit a7410239b6

View file

@ -48,6 +48,14 @@ def dots():
console.print(Text(" ").join([Text("", style=color) for color in colors[:8]])) console.print(Text(" ").join([Text("", style=color) for color in colors[:8]]))
def double_dots():
"""
"""
console.print(Text(" ").join([Text("", style=color) for color in colors[:8]]))
console.print(Text(" ").join([Text("", style=color) for color in colors[8:]]))
def wave_w_dots(): def wave_w_dots():
""" """
@ -72,9 +80,9 @@ def wave_w_dots():
def main(): def main():
prompts = {"wave": wave, "dots": dots, "wave_w_dots": wave_w_dots} prompts = {"wave": wave, "dots": dots,'double-dots':double_dots, "wave-dots": wave_w_dots}
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description="generate ansi color coded login prompts'" description="generate ansi color coded login prompts"
) )
parser.add_argument("--welcome", type=str, help="a welcome screen to print") parser.add_argument("--welcome", type=str, help="a welcome screen to print")
@ -87,6 +95,7 @@ def main():
elif args.welcome not in prompts.keys(): elif args.welcome not in prompts.keys():
console.print(f"{args.welcome} is not a registered prompt") console.print(f"{args.welcome} is not a registered prompt")
else: else:
console.print()
prompts[args.welcome]() prompts[args.welcome]()