Arg multimethod

Methods

Arg(p:Path) Source: stdlib.ngs:4291
Convert to string, appropriate for using as argument to external process.

Automatically called by NGS for syntax

$(mycommand $mypath) # mypath is Path

Example

conf_files = [Path("/usr/local/etc/some.conf"), Path("/etc/some.conf")].filter(Bool(X))
$(ls -l $*conf_files)
Arg(x:Real) Source: stdlib.ngs:4910
Convert to string, appropriate for using as argument to external process.

Automatically called by NGS for syntax

$(mycommand $num) # num is Real
Arg(x:Int) Source: stdlib.ngs:4914
Convert to string, appropriate for using as argument to external process.

Automatically called by NGS for syntax

$(mycommand $num) # num is Int
Arg(x:Str) Source: stdlib.ngs:4918
Convert to string, appropriate for using as argument to external process. No-op for Str: return the same string.

Automatically called by NGS for syntax

$(mycommand $str) # str is Str