mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
Add an option to control unmounting on success in Etcher CLI (#362)
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
3fdf41693a
commit
bb4ad6a042
@ -103,6 +103,12 @@ module.exports = yargs
|
|||||||
describe: 'confirm non-interactively',
|
describe: 'confirm non-interactively',
|
||||||
boolean: true,
|
boolean: true,
|
||||||
alias: 'y'
|
alias: 'y'
|
||||||
|
},
|
||||||
|
unmount: {
|
||||||
|
describe: 'unmount on success',
|
||||||
|
boolean: true,
|
||||||
|
alias: 'u',
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.argv;
|
.argv;
|
||||||
|
@ -57,7 +57,7 @@ form.run([
|
|||||||
return writer.writeImage(options._[0], {
|
return writer.writeImage(options._[0], {
|
||||||
device: answers.drive
|
device: answers.drive
|
||||||
}, {
|
}, {
|
||||||
unmountOnSuccess: false,
|
unmountOnSuccess: options.unmount,
|
||||||
validateWriteOnSuccess: options.check
|
validateWriteOnSuccess: options.check
|
||||||
}, function(state) {
|
}, function(state) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user