UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

15 lines 626 B
import { Command } from 'commander'; import { checkAuth } from '../auth/utils.js'; import CreateProposalCommand from './commands/create.js'; import UpdateProposalCommand from './commands/update.js'; export default (opts) => { const command = new Command('proposal'); command.description('Provides commands for creating and maintaining proposals for a federated graph'); command.addCommand(CreateProposalCommand(opts)); command.addCommand(UpdateProposalCommand(opts)); command.hook('preAction', async (thisCmd) => { await checkAuth(); }); return command; }; //# sourceMappingURL=index.js.map