aboutsummaryrefslogtreecommitdiff
path: root/src/tm.nim
diff options
context:
space:
mode:
authorTom Harley2018-05-14 18:50:40 +0100
committerTom Harley2018-05-14 18:50:40 +0100
commitf09627f7c5a2cd8593745211459a9fd2468bac88 (patch)
tree1d344fe71fd57cf0dd5092f8519a9d344abaaa00 /src/tm.nim
parentInitialise nimble package (diff)
downloadmachines-f09627f7c5a2cd8593745211459a9fd2468bac88.tar.gz
machines-f09627f7c5a2cd8593745211459a9fd2468bac88.zip

Add docopts

Diffstat (limited to 'src/tm.nim')
-rw-r--r--src/tm.nim18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/tm.nim b/src/tm.nim
deleted file mode 100644
index 26c97f2..0000000
--- a/src/tm.nim
+++ /dev/null
@@ -1,18 +0,0 @@
-import os
-
-import lib
-
-const tmname {.strdefine.}: string = ""
-
-when tmname.len > 0:
- const tmd = parse(slurp(tmname & ".tm"))
- if paramCount() >= 1:
- echo makeDTM(tmd, paramStr(1)).test(false)
- else:
- echo "please specify a single string argument"
-else:
- if paramCount() >= 2:
- let tmd = parse(readFile(paramStr(1) & ".tm"))
- echo makeDTM(tmd, paramStr(2)).test(true)
- else:
- echo "please specify a description and string input"