Documented shebang execution of Nimscripts
This commit is contained in:
parent
2b8a1cee8c
commit
9ffed0de3f
1 changed files with 9 additions and 0 deletions
|
|
@ -108,3 +108,12 @@ installation of Nimble is done with this simple script:
|
||||||
|
|
||||||
mvFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe
|
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue