athom-cli
Version:
Command-line interface for Homey Apps
18 lines (14 loc) • 390 B
JavaScript
;
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));
}
}