IF Commons GitHub

Terminal

Quality: 42 tests: 42 passed, 0 failed, 0 skipped, 5 of 6 requirements proved, 0 open issues, 0 open tickets. The tests and issues of the library

The terminal, as pure code (commons terminal 0001-terminal): a typed command-line parser (args) and command trees (commands), the one palette of colour roles and marks (palette), display width and the cutting of a text by columns (width), and a small terminal emulator for snapshot tests (vt). Each is a namespace of this entry and an entry of its own (@intellectual-frontiers/terminal/args, and so on), so that a program imports what it uses; nothing here touches the host.

Entry points

Modules

Examples

import { args } from "@intellectual-frontiers/terminal";
const options = { verbose: args.flag({ help: "Say more." }) };
args.parseArgs(["--verbose"], { options, operands: [] }); // an Args value with options.verbose true

Titles, headings, exports, tables, columns and requirements. Esc closes.