UNPKG

athom-cli

Version:

Command-line interface for Homey Apps

19 lines (14 loc) 372 B
'use strict'; const Log = require('../../../..').Log; const App = require('../../../..').App; const colors = require('colors'); exports.desc = 'Create a new Driver'; exports.handler = async yargs => { let appPath = yargs.path || process.cwd(); try { let app = new App( appPath ); await app.createDriver(); } catch( err ) { Log(colors.red(err.message)); } }