UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

27 lines 900 B
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 CliCompletionShUpdateCommand extends AnonymousCommand { get name() { return commands.COMPLETION_SH_UPDATE; } get description() { return 'Updates command completion for Zsh, Bash and Fish'; } get schema() { return options; } async commandAction(logger) { if (this.debug) { await logger.logToStderr('Generating command completion...'); } autocomplete.generateShCompletion(); } } export default new CliCompletionShUpdateCommand(); //# sourceMappingURL=completion-sh-update.js.map