diff config.nims @ 39:0cb294c5d2fd

fix: hello cube, add: run_all command
author Sam <sam@basx.dev>
date Wed, 18 Jan 2023 13:49:12 +0700
parents c3c963e7c1a6
children ab8de2471a3a
line wrap: on
line diff
--- a/config.nims	Wed Jan 18 09:52:03 2023 +0700
+++ b/config.nims	Wed Jan 18 13:49:12 2023 +0700
@@ -122,3 +122,13 @@
 
 if getCommand() in ["c", "compile", "r", "dump", "check", "idetools"]:
   compilerFlags()
+
+task run_all , "Run all binaries":
+  for file in listFiles("build/debug/linux"):
+    exec file
+  for file in listFiles("build/release/linux"):
+    exec file
+  for file in listFiles("build/debug/windows"):
+    exec &"wine {file}"
+  for file in listFiles("build/release/windows"):
+    exec &"wine {file}"