Skip to content
Français

MemoryCommand

import type { MemoryCommand } from "@elie-laloum/outpost/testing";
  • executableRequired
    string
    Executable name expected for the next non-agent command. It is compared literally and never launched.
  • argumentsOptional
    readonly string[] | undefined
    Exact ordered arguments expected for this command; defaults to an empty array.
  • statusOptional
    number | undefined
    Simulated command exit status; defaults to 0. A nonzero value fails defineCommandTask through its normal retry policy.
  • stdoutOptional
    string | undefined
    Simulated standard output delivered to command observation and returned in CommandResult; defaults to empty.
  • stderrOptional
    string | undefined
    Simulated standard error delivered to command observation and returned in CommandResult; defaults to empty.
export interface MemoryCommand extends Partial<CommandResult> {
  readonly executable: string;
  readonly arguments?: readonly string[];
}