Methods

$()ΒΆ

$()(c:Command)

Execute an external command. Waits for the command to finish unless "&" is specified.
Source: stdlib.ngs:3238

c

Command type instance, typically constructed by NGS when parsing the contents of $(...) .

Returns

Process

Example

if $(test -f /myfile) { ... }
# or
p = $(node main.js serve &)
YOUR_TESTS_OF_NODE_SERVER_HERE
p.kill()

$()(c:Command)

Enables "nofail" command prefix.
Source: stdlib.ngs:3347

Example

test
$(nofail ./NONE).exit_code.echo()  # Would cause exception without "nofail"