import { Command } from "commander";
import { versionStatusText } from "./action.js";
export { versionText } from "./action.js";
export function createVersionCommand(context, setExitCode) {
    return new Command("version")
        .description("Print the installed version and check for updates")
        .action(async () => {
        context.stdout.write(`${await versionStatusText(context)}\n`);
        setExitCode(0);
    });
}
//# sourceMappingURL=index.js.map