Shared runtime core for cli command modules.
let options = [@cli.flag("verbose", short='v'), @cli.option("output", short='o')]
let args = @cli.parse(["-v", "-o", "result.txt", "input.txt"], options[:])
assert_eq(args.last_value("output"), Some("result.txt"))
assert_eq(args.operands, ["input.txt"])| Package | Purpose |
|---|---|
| cli | Option parsing and structured argument errors. |
| stream, tempio | Byte streams and temporary-file I/O. |
| fsops, fswalk, platform | Path/filesystem mechanisms, traversal and host capabilities. |
| bytesearch, bytere | Byte searching and the supported byte-regex engine. |
| numfmt, quoting | Numeric parsing/formatting and byte/path quoting. |
| checksum, checksum/cli | Digest algorithms and shared checksum command handling. |
| gzipops, gzipops/cli | Gzip streams and shared codec command handling. |
| netops | Scoped HTTP transport, URL, IDNA and public-suffix mechanisms. |
| time_zone | Timezone selection, TZif/POSIX conversion and local-time validation. |
| process, shell | Child execution and the supported shell language. |