diff config.nims @ 500:8025ab67d931

fix: hello cube, add: run_all command
author Sam <sam@basx.dev>
date Wed, 18 Jan 2023 13:49:12 +0700
parents 3f1111f3b9f8
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}"