Skip to content
Français

CommandResult

import type { CommandResult } from "@elie-laloum/outpost";
  • statusRequired
    number
    Exit code of the process, 0 for success. A nonzero code still resolves the command, so check it.
  • stdoutRequired
    string
    Last retain characters of standard output. Empty when an interactive command without terminal streams used the host terminal on the local, Docker or Podman provider.
  • stderrRequired
    string
    Last retain characters of standard error. Empty in the same host-terminal case, and for a Daytona terminal, whose output is all in stdout.
export interface CommandResult {
  readonly status: number;
  readonly stdout: string;
  readonly stderr: string;
}