balena-cli/bin/resin-write

19 lines
412 B
Plaintext
Raw Normal View History

2015-01-29 16:04:48 +00:00
#!/usr/bin/env node
// http://coffeescript.org/documentation/docs/register.html
require('coffee-script/register');
2015-02-10 17:09:05 +00:00
var os = require('../lib/actions/os.coffee');
2015-02-10 17:07:11 +00:00
var errors = require('../lib/errors');
2015-01-29 16:04:48 +00:00
2015-01-29 17:17:26 +00:00
// TODO: Do some error handling when image or device are incorrect
2015-02-10 17:09:05 +00:00
os.install.action({
2015-01-29 16:04:48 +00:00
image: process.argv[2],
device: process.argv[3]
}, {
yes: true
}, function(error) {
return errors.handle(error);
});