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;
}
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;
}
Get formatted usage string including command description and options