import { Flags } from '@oclif/core';
import BuildHost from '../../lib/buildHost.js';
import BuildHostCommand from '../../lib/buildHost/buildHostCommand.js';
export default class BuildHostDestroy extends BuildHostCommand {
    static description = 'Destroy an existing Build Host in Kyndryl Cloud Uplift';
    static descriptionGerund = 'Destroying Build Host in Kyndryl Cloud Uplift';
    static flags = {
        "force": Flags.boolean({ char: 'f', default: false, description: 'Reset local Build Host state even if the remote environment cannot be deleted' }),
    };
    async runImpl() {
        const buildHost = await BuildHost.get();
        await buildHost.destroy(this.parsedFlags.force);
    }
}
