mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
19 lines
412 B
JavaScript
19 lines
412 B
JavaScript
#!/usr/bin/env node
|
|
|
|
// http://coffeescript.org/documentation/docs/register.html
|
|
require('coffee-script/register');
|
|
|
|
var os = require('../lib/actions/os.coffee');
|
|
var errors = require('../lib/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
|
|
}, function(error) {
|
|
return errors.handle(error);
|
|
});
|