@graphql-hive/cli
Version:
A CLI util to manage and control your GraphQL Hive
21 lines (15 loc) • 415 B
Plain Text
#!/usr/bin/env tsx
// Suppress warnings from the CLI
process.removeAllListeners('warning');
const oclif = require('@oclif/core');
// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development';
// In dev mode, always show stack traces
oclif.settings.debug = true;
// Start the CLI
oclif
.execute({ development: true, dir: __dirname })
.catch(e => {
throw e;
})
.then(() => {});