@shopify/cli-kit
    Preparing search index...

    Function presentUpgradeResult

    • Presents the upgrade result without changing progress or package-manager output.

      Parameters

      • result:
            | {
                changed: boolean;
                packageManager: "yarn"
                | "npm"
                | "pnpm"
                | "bun"
                | "homebrew";
                previousVersion: string;
                scope: "global";
                status: "success";
                version: string;
            }
            | {
                availableVersion: string
                | null;
                changed: null;
                directory: string;
                packages: string[];
                previousVersion: string;
                scope: "local";
                status: "success";
            }
            | {
                reason: "development"
                | "local-autoupgrade"
                | "dependency-not-found";
                scope: "local" | "global";
                status: "skipped";
            }

        The completed upgrade outcome.

      • format: "text" | "json"

        The output format selected by the caller.

      Returns void