runClifunction
Run the command line. See toranpu --help for what it takes. Every deal
comes from the seed, so the same command prints the same cards on every
machine.
Import it
import { runCli } from "@johnmorrisdotca/toranpu";
Definition
function runCli(args: readonly string[], around?: CliSurroundings): CliResult
Parameters
| Name | Type | Description |
|---|---|---|
args | readonly string[] | Arguments after the command name. |
around (optional) | CliSurroundings | Environment, locale, input and random source supplied by the host. |
Returns
CliResult
Run the command line. See toranpu --help for what it takes. Every deal comes from the seed, so the same command prints the same cards on every machine.
Examples
import { runCli } from "@johnmorrisdotca/toranpu";
console.log(runCli(["--help"], { colour: false }).code);0What it prints (run when this page was built)