UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

13 lines 489 B
import { Command } from 'commander'; import { checkAuth } from '../auth/utils.js'; import PushOperationsCommand from './commands/push.js'; export default (opts) => { const command = new Command('operations'); command.description('Provides commands manipulating registered operations'); command.addCommand(PushOperationsCommand(opts)); command.hook('preAction', async (thisCmd) => { await checkAuth(); }); return command; }; //# sourceMappingURL=index.js.map