import { Command } from "commander";
import { loadCliState, parsedArgs } from "../shared.js";
import { runStatusCommand } from "./action.js";
export function createStatusCommand(context, setExitCode) {
    return new Command("status")
        .description("Print the selected instance status")
        .option("--instance <name>", "select a configured instance")
        .action(async (options) => {
        const { config } = await loadCliState(context);
        setExitCode(await runStatusCommand(config, parsedArgs("status", undefined, [], options), context));
    });
}
//# sourceMappingURL=index.js.map