UNPKG

athom-cli

Version:

Command-line interface for Homey Apps

18 lines (13 loc) 342 B
'use strict'; const Log = require('../../..').Log; const App = require('../../..').App; const colors = require('colors'); exports.desc = 'Create a new Homey App'; exports.handler = async yargs => { let appPath = yargs.path || process.cwd(); try { await App.create({ appPath }); } catch( err ) { Log(colors.red(err.message)); } }