import { z } from 'zod';
import { autocomplete } from '../../../../autocomplete.js';
import { globalOptionsZod } from '../../../../Command.js';
import AnonymousCommand from '../../../base/AnonymousCommand.js';
import commands from '../../commands.js';
export const options = z.strictObject({
    ...globalOptionsZod.shape
});
class CliCompletionPwshUpdateCommand extends AnonymousCommand {
    get name() {
        return commands.COMPLETION_PWSH_UPDATE;
    }
    get description() {
        return 'Updates command completion for PowerShell';
    }
    get schema() {
        return options;
    }
    async commandAction(logger) {
        if (this.debug) {
            await logger.logToStderr('Generating command completion...');
        }
        autocomplete.generateShCompletion();
    }
}
export default new CliCompletionPwshUpdateCommand();
//# sourceMappingURL=completion-pwsh-update.js.map