Clean up & add yes utility

This commit is contained in:
joachimschmidt557 2019-03-07 16:24:29 +01:00
parent cdb226da8c
commit c4a8616344
7 changed files with 28 additions and 7 deletions

12
yes.nim Normal file
View file

@ -0,0 +1,12 @@
import cligen, sequtils
import common
proc main(strings:seq[string]) =
if strings.len == 0:
while true:
echo "y"
else:
while true:
echo strings.foldl(a & b)
dispatch(main, version=("version", nimbaseVersion))