Merge pull request #1248 from balena-io/fix-latest-commit-alias

Fix `balena preload --commit current` alias
This commit is contained in:
Alexis Svinartchouk 2019-05-22 17:50:06 +02:00 committed by GitHub
commit 5e0d24a1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1392,7 +1392,7 @@ id of the application to preload
The commit hash for a specific application release to preload, use "current" to specify the current
release (ignored if no appId is given). The current release is usually also the latest, but can be
manually pinned using the CLI to set the commit field on the application.
manually pinned using https://github.com/balena-io-projects/staged-releases .
#### --splash-image, -s <splashImage.png>
@ -1404,7 +1404,7 @@ Disables check for matching architecture in image and application
#### --pin-device-to-release, -p
Pin the preloaded device to the preloaded release on provision
Pin the preloaded device (not application) to the preloaded release on provision
#### --docker, -P <docker>

View File

@ -162,7 +162,7 @@ module.exports =
description: '''
The commit hash for a specific application release to preload, use "current" to specify the current
release (ignored if no appId is given). The current release is usually also the latest, but can be
manually pinned using the CLI to set the commit field on the application.
manually pinned using https://github.com/balena-io-projects/staged-releases .
'''
alias: 'c'
}
@ -180,7 +180,7 @@ module.exports =
{
signature: 'pin-device-to-release'
boolean: true
description: 'Pin the preloaded device to the preloaded release on provision'
description: 'Pin the preloaded device (not application) to the preloaded release on provision'
alias: 'p'
}
]
@ -213,6 +213,7 @@ module.exports =
console.log()
spinner.stop()
options.commit = if isCurrent(options.commit) then 'latest' else options.commit
options.image = params.image
options.appId = options.app
delete options.app