From c6e71553ab740710fd6be9b1273fffefbc16283d Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 19 Dec 2019 23:50:59 -0700 Subject: [PATCH] Format text, --- src/stockers.nim | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/src/stockers.nim b/src/stockers.nim index 87592d6..1476aa4 100644 --- a/src/stockers.nim +++ b/src/stockers.nim @@ -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() \ No newline at end of file