#!/usr/bin/env node var os = require('../build/actions/os'); var errors = require('../build/errors'); // TODO: Do some error handling when image or device are incorrect os.install.action({ image: process.argv[2], device: process.argv[3] }, { yes: true, fromScript: true }, function(error) { return errors.handle(error); });