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 | Bounded binary reads, record scanning, buffered output and temporary-file I/O. |
| fsops, fswalk, platform | Path/filesystem mechanisms, traversal and host capabilities. |
| pathresolve | Physical and lexical canonicalization with explicit component-existence policies. |
| bytesearch, bytere | Byte searching and the C-byte and C.UTF-8 grep regex engines. |
| archivefs | Bounded regular-file and directory collection and extraction for tar and ZIP. |
| textwidth | Incremental UTF-8 decoding, scalar cell widths and horizontal blanks for C.UTF-8. |
| 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 | HTTP transport over standard async TCP and TLS, URL, IDNA and public-suffix mechanisms. |
| time_zone | Timezone selection, TZif/POSIX conversion and local-time validation. |
| process, shell | Standard async child processes, redirection and the supported shell language. |