Reference · Cube engine and views
CliResulttype
What the command line came to: the exit code, and what goes to standard output and standard error.
Import it
import type { CliResult } from "@johnmorrisdotca/kyuubu";
Definition
type CliResult = {
code: 0 | 1 | 2;
out: string;
err: string;
};
Members
| Name | Type | Description |
|---|---|---|
code | 0 | 1 | 2 | |
out | string | |
err | string |
Examples
import type { CliResult } from "@johnmorrisdotca/kyuubu";
import { runCli } from "@johnmorrisdotca/kyuubu";
const value: CliResult = runCli(["--help"]);
console.log(value.code);0What it prints (run when this page was built)