#!/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(() => {});
