Format text,

This commit is contained in:
mollusk 2019-12-19 23:50:59 -07:00
parent 545c547723
commit c6e71553ab

View File

@ -49,11 +49,11 @@ when isMainModule:
proc options(name: string) = proc options(name: string) =
echo(fmt""" echo(fmt"""
Properties of {name} Properties of {name}
1) Cases per minute 1) Cases per minute
q) Quit q) Quit
""") """)
@ -68,18 +68,21 @@ when isMainModule:
proc mainScreen() = proc mainScreen() =
echo(""" echo(fmt"""
------------
| Stockers |
| v0.1.0 |
------------
1) Leroy
1) Leroy 2) Perez
2) Perez 3) Eric
3) Eric 4) Emiliano
4) Emiliano 5) Jamal
5) Jamal 6) Joseph
6) Joseph 7) Justin
7) Justin 8) Lee
8) Lee q) Quit
q) Quit
""") """)
@ -88,7 +91,23 @@ when isMainModule:
if employee == "1": if employee == "1":
options("Leroy") options("Leroy")
elif employee == "2":
options("Perez")
elif employee == "3":
options("Eric")
elif employee == "4":
options("Emiliano")
elif employee == "5":
options("Jamal")
elif employee == "6":
options("Joseph")
elif employee == "7":
options("Justin")
elif employee == "8":
options("Lee")
elif employee == "q": elif employee == "q":
quit(0) quit(0)
else:
echo(fmt"{employee} is not listed above")
mainScreen() mainScreen()