eg:
$ code script.nim #!/usr/bin/env nimcr echo "hello world" $ ./script.nim hello world
There's also the possibility of using nimscript, using nim e. It works similarly but you'd change the shebang line to something like
#!/usr/bin/env nim e --hints:off
In config.nims:
switch("hints", "off") task hello, "say hello world": echo "hello world"
$ nim hello hello world
eg:
edit:There's also the possibility of using nimscript, using nim e. It works similarly but you'd change the shebang line to something like