mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 14:37:47 +00:00
Add missing yes
option to os initialize
This option is tried to be used within the command, but is not defined as a formal Capitano option.
This commit is contained in:
parent
a17bb2cc09
commit
58713dc291
@ -1,5 +1,5 @@
|
||||
(function() {
|
||||
var Promise, _, form, fs, helpers, init, manager, patterns, resin, stepHandler, umount, unzip, visuals;
|
||||
var Promise, _, commandOptions, form, fs, helpers, init, manager, patterns, resin, stepHandler, umount, unzip, visuals;
|
||||
|
||||
fs = require('fs');
|
||||
|
||||
@ -21,6 +21,8 @@
|
||||
|
||||
init = require('resin-device-init');
|
||||
|
||||
commandOptions = require('./command-options');
|
||||
|
||||
helpers = require('../utils/helpers');
|
||||
|
||||
patterns = require('../utils/patterns');
|
||||
@ -102,6 +104,7 @@
|
||||
description: 'initialize an os image',
|
||||
help: 'Use this command to initialize a previously configured operating system image.\n\nExamples:\n\n $ resin os initialize ../path/rpi.img \'raspberry-pi\'',
|
||||
permission: 'user',
|
||||
options: [commandOptions.yes],
|
||||
root: true,
|
||||
action: function(params, options, done) {
|
||||
console.info('Initializing device');
|
||||
|
@ -8,6 +8,7 @@ manager = require('resin-image-manager')
|
||||
visuals = require('resin-cli-visuals')
|
||||
form = require('resin-cli-form')
|
||||
init = require('resin-device-init')
|
||||
commandOptions = require('./command-options')
|
||||
helpers = require('../utils/helpers')
|
||||
patterns = require('../utils/patterns')
|
||||
|
||||
@ -105,6 +106,7 @@ exports.initialize =
|
||||
$ resin os initialize ../path/rpi.img 'raspberry-pi'
|
||||
'''
|
||||
permission: 'user'
|
||||
options: [ commandOptions.yes ]
|
||||
root: true
|
||||
action: (params, options, done) ->
|
||||
console.info('Initializing device')
|
||||
|
Loading…
Reference in New Issue
Block a user