UNPKG

athom-cli

Version:

Command-line interface for Homey Apps

18 lines (14 loc) 390 B
'use strict'; const path = require('path'); const Log = require('../../..').Log; const Animation = require('../../..').Animation; const colors = require('colors'); exports.desc = 'Play a LED Ring animation on Homey'; exports.handler = async yargs => { try { let animation = new Animation( yargs.path ); await animation.run(); } catch( err ) { Log(colors.red(err.message)); } }