wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
12 lines • 595 B
JavaScript
import { Command } from 'commander';
import GetRouterCompatibilityVersion from './commands/get.js';
import SetRouterCompatibilityVersion from './commands/set.js';
export default (opts) => {
const graphType = opts.isMonograph ? 'monograph' : 'federated graph';
const command = new Command('version');
command.description(`Provides commands related to the router compatibility version of a ${graphType}.`);
command.addCommand(GetRouterCompatibilityVersion(opts));
command.addCommand(SetRouterCompatibilityVersion(opts));
return command;
};
//# sourceMappingURL=index.js.map