mise API - v0.0.0
    Preparing search index...

    Function line_execute

    • Executes one input line and returns one envelope per executed command.

      Line-level constructs are recognized in the shell's historical order: shell escape first (the whole line goes to the host shell), then semicolon batching (each segment recurses through this function), then pipes, then standalone output redirection, then plain dispatch. A redirect in the final pipe segment therefore runs on the originating surface along with that segment. Output reaches the active sink as each command completes.

      Parameters

      • line: string

        The raw input line.

      • options: LineOptions = {}

        The surface the line came from, when a host names it.

      Returns Promise<
          {
              errors?: { message: string; type: "error"
              | "warning" }[];
              model?: { data: unknown; kind: string };
              rendered: string;
              renderedErr?: string;
              status: "error" | "ok";
              trace?: {
                  executed?: string;
                  input: string;
                  proposed: string;
                  validated: boolean;
              };
          }[],
      >

      The envelopes of the executed commands, in execution order.