wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
13 lines • 465 B
JavaScript
import { Command } from 'commander';
import { checkAuth } from '../auth/utils.js';
import demoCommandFactory from './command.js';
export default (opts) => {
const command = new Command('demo');
command.description('Prepares demo federated graphs and facilitates onboarding');
command.hook('preAction', async () => {
await checkAuth();
});
command.action(demoCommandFactory(opts));
return command;
};
//# sourceMappingURL=index.js.map