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

    Function envelopeHandler_wrap

    • Adapts an envelope-returning builtin to the legacy printing handler shape.

      This is the compatibility bridge for incremental conversion: converted builtins return envelopes, and this wrapper delivers them through the active sink so the dispatch table, pipes and redirects need no changes. A handler that resolves without an envelope (as stubbed handlers in tests do) is treated as having produced no output.

      Parameters

      • handler: (
            args: string[],
        ) => 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;
                };
            },
        >

        An envelope-returning command handler.

      Returns (args: string[]) => Promise<void>

      A handler with the legacy void-returning shape.