Program type
Example
for p in %[ls base64 dd] assert(Program(p))
Methods
- Arg(p:Program) Source: stdlib.ngs:6473
EXPERIMENTAL!
- assert(p:Program) Source: stdlib.ngs:6467
Checks that given program is found (in path). Throws AssertFail otherwise. Returns
p
- Bool(p:Program) Source: stdlib.ngs:6454
Checks whether the given program is found in path. Returns
Bool. The program is found in path or program name is absolute
- init(p:Program, name:Str) Source: stdlib.ngs:6438
External Program
- Path(p:Program) Source: stdlib.ngs:6446
Path of a program. As-is for program names containing a slash. Lookup in PATH otherwise. Can throw ProgramNotFound when looking up in PATH. Returns
Path
- Str(p:Program) Source: stdlib.ngs:6475
Undocumented