Format text,
This commit is contained in:
parent
545c547723
commit
c6e71553ab
@ -49,11 +49,11 @@ when isMainModule:
|
||||
|
||||
proc options(name: string) =
|
||||
echo(fmt"""
|
||||
Properties of {name}
|
||||
Properties of {name}
|
||||
|
||||
|
||||
1) Cases per minute
|
||||
q) Quit
|
||||
1) Cases per minute
|
||||
q) Quit
|
||||
|
||||
""")
|
||||
|
||||
@ -68,18 +68,21 @@ when isMainModule:
|
||||
|
||||
|
||||
proc mainScreen() =
|
||||
echo("""
|
||||
echo(fmt"""
|
||||
------------
|
||||
| Stockers |
|
||||
| v0.1.0 |
|
||||
------------
|
||||
|
||||
|
||||
1) Leroy
|
||||
2) Perez
|
||||
3) Eric
|
||||
4) Emiliano
|
||||
5) Jamal
|
||||
6) Joseph
|
||||
7) Justin
|
||||
8) Lee
|
||||
q) Quit
|
||||
1) Leroy
|
||||
2) Perez
|
||||
3) Eric
|
||||
4) Emiliano
|
||||
5) Jamal
|
||||
6) Joseph
|
||||
7) Justin
|
||||
8) Lee
|
||||
q) Quit
|
||||
|
||||
""")
|
||||
|
||||
@ -88,7 +91,23 @@ when isMainModule:
|
||||
|
||||
if employee == "1":
|
||||
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":
|
||||
quit(0)
|
||||
else:
|
||||
echo(fmt"{employee} is not listed above")
|
||||
|
||||
mainScreen()
|
Loading…
x
Reference in New Issue
Block a user