Clean up & add yes utility
This commit is contained in:
parent
cdb226da8c
commit
c4a8616344
7 changed files with 28 additions and 7 deletions
12
yes.nim
Normal file
12
yes.nim
Normal 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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue