Documented shebang execution of Nimscripts

This commit is contained in:
Adam Johnson
2017-05-21 22:17:41 +01:00
parent 2b8a1cee8c
commit 9ffed0de3f

View File

@@ -108,3 +108,12 @@ installation of Nimble is done with this simple script:
mvFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe
You can also use the shebang ``#!/usr/bin/env nim``, as long as your filename
ends with ``.nims``:
.. code-block:: nim
#!/usr/bin/env nim
mode = ScriptMode.Silent
echo "hello world"