Hello,
I am using Nim on Windows, and I just updated to 0.12 to see what Nimscript can do. Unfortunately it does not work as expected or as seen in the documentation / examples.
I was using the example script to get a simple Nim build task:
mode = ScriptMode.Verbose
task default, "default target":
# 'nim default foo.nim' is an alias for 'nim c foo.nim'
setCommand "c"
But when executing nim default helloworld.nim I only get
default default target Error: invalid command: 'build'
(Also I want to say, it is quite difficult that the documentation does not tell you about how to use nimscript as build script. This syntax is hidden in the forum …)
What is wrong with the example or my execution of it?