Interface TerminalCommand

interface TerminalCommand {
    command: string;
    description: string;
    kernel: Kernel;
    options: OptionDefinition[];
    run: (pid: number, argv: string[]) => Promise<undefined | number | void>;
    shell: Shell;
    stderr?: WritableStream<Uint8Array>;
    stdin?: ReadableStream<Uint8Array>;
    stdout?: WritableStream<Uint8Array>;
    terminal: Terminal;
    usage: string;
    usageContent: string;
}

Properties

command: string
description: string
kernel: Kernel
options: OptionDefinition[]
run: (pid: number, argv: string[]) => Promise<undefined | number | void>
shell: Shell
terminal: Terminal
usage: string

Get formatted usage string including command description and options

usageContent: string

Get formatted usage content string