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

    Function command_dispatchEnvelope

    • Dispatches a parsed command to its handler and returns its envelope, with any errors the command left on the stack drained into the envelope.

      Parameters

      • command: string

        The command name.

      • args: string[]

        Parsed arguments.

      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 envelope of the executed command.