UNPKG

firescript

Version:
19 lines (16 loc) 397 B
const path = require('path') const { Command } = require('supercmd') const command = new Command() module.exports.command = command command .cmd('exec [file]') .description('Executes a .fire file') .action((ctx, file) => { require('../src/register') try { require(path.resolve(process.cwd(), file)) } catch (err) { console.log(err) process.exit(1) } })