mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-02 20:16:41 +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() {
|
(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');
|
fs = require('fs');
|
||||||
|
|
||||||
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
init = require('resin-device-init');
|
init = require('resin-device-init');
|
||||||
|
|
||||||
|
commandOptions = require('./command-options');
|
||||||
|
|
||||||
helpers = require('../utils/helpers');
|
helpers = require('../utils/helpers');
|
||||||
|
|
||||||
patterns = require('../utils/patterns');
|
patterns = require('../utils/patterns');
|
||||||
@ -102,6 +104,7 @@
|
|||||||
description: 'initialize an os image',
|
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\'',
|
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',
|
permission: 'user',
|
||||||
|
options: [commandOptions.yes],
|
||||||
root: true,
|
root: true,
|
||||||
action: function(params, options, done) {
|
action: function(params, options, done) {
|
||||||
console.info('Initializing device');
|
console.info('Initializing device');
|
||||||
|
@ -8,6 +8,7 @@ manager = require('resin-image-manager')
|
|||||||
visuals = require('resin-cli-visuals')
|
visuals = require('resin-cli-visuals')
|
||||||
form = require('resin-cli-form')
|
form = require('resin-cli-form')
|
||||||
init = require('resin-device-init')
|
init = require('resin-device-init')
|
||||||
|
commandOptions = require('./command-options')
|
||||||
helpers = require('../utils/helpers')
|
helpers = require('../utils/helpers')
|
||||||
patterns = require('../utils/patterns')
|
patterns = require('../utils/patterns')
|
||||||
|
|
||||||
@ -105,6 +106,7 @@ exports.initialize =
|
|||||||
$ resin os initialize ../path/rpi.img 'raspberry-pi'
|
$ resin os initialize ../path/rpi.img 'raspberry-pi'
|
||||||
'''
|
'''
|
||||||
permission: 'user'
|
permission: 'user'
|
||||||
|
options: [ commandOptions.yes ]
|
||||||
root: true
|
root: true
|
||||||
action: (params, options, done) ->
|
action: (params, options, done) ->
|
||||||
console.info('Initializing device')
|
console.info('Initializing device')
|
||||||
|
Loading…
Reference in New Issue
Block a user