UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

15 lines 568 B
import { Command } from 'commander'; import { checkAuth } from '../auth/utils.js'; import DeleteClientsCommand from './commands/delete.js'; import ListClientsCommand from './commands/list.js'; export default (opts) => { const command = new Command('clients'); command.description('Provides commands for managing clients'); command.addCommand(DeleteClientsCommand(opts)); command.addCommand(ListClientsCommand(opts)); command.hook('preAction', async () => { await checkAuth(); }); return command; }; //# sourceMappingURL=index.js.map