Compare commits

..

1 Commits

Author SHA1 Message Date
a92db0f068 README: add instructions for development build
The readme currently only details how to install the CLI from a binary
package, not how to build the CLI for testing during development. Add
instructions for how to build and test changes.

Change-type: patch
Signed-off-by: Joseph Kogut <joseph@balena.io>
2021-10-01 12:31:26 -07:00
6 changed files with 16 additions and 25 deletions

View File

@ -1,16 +1,3 @@
- commits:
- subject: Error message when renaming a fleet now mentions the target name.
hash: c493c33e3896784ee60c9d4ac79721ca6b96a778
body: ''
footer:
Change-type: patch
change-type: patch
Signed-off-by: Carlo Miguel F. Cruz <carloc@balena.io>
signed-off-by: Carlo Miguel F. Cruz <carloc@balena.io>
author: Carlo Miguel F. Cruz
nested: []
version: 12.50.2
date: 2021-10-05T09:04:40.995Z
- commits:
- subject: Update dependencies (@sentry/node error reporting)
hash: 08dfc945f3ed1c518a7d1830a5a37d72fd5739fd

View File

@ -4,10 +4,6 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## 12.50.2 - 2021-10-05
* Error message when renaming a fleet now mentions the target name. [Carlo Miguel F. Cruz]
## 12.50.1 - 2021-09-30
* Update dependencies (@sentry/node error reporting) [Paulo Castro]

View File

@ -20,6 +20,14 @@ GitHub](https://github.com/balena-io/balena-cli/), and your contribution is also
Check the [balena CLI installation instructions on
GitHub](https://github.com/balena-io/balena-cli/blob/master/INSTALL.md).
## Development
You can build the CLI for testing during development like so:
`npm install && npm run build`
After the build is completed, run `bin/balena` to test your changes.
## Choosing a shell (command prompt/terminal)
On **Windows,** the standard Command Prompt (`cmd.exe`) and

View File

@ -120,7 +120,7 @@ export class FleetRenameCmd extends Command {
} catch (e) {
// BalenaRequestError: Request error: "organization" and "app_name" must be unique.
if ((e.message || '').toLowerCase().includes('unique')) {
throw new ExpectedError(`Error: fleet ${newName} already exists.`);
throw new ExpectedError(`Error: fleet ${params.fleet} already exists.`);
}
throw e;
}

8
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{
"name": "balena-cli",
"version": "12.50.2",
"version": "12.50.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -15440,9 +15440,9 @@
}
},
"resin-compose-parse": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/resin-compose-parse/-/resin-compose-parse-2.3.0.tgz",
"integrity": "sha512-9vE+ascGEXuyTYjLmhwmVOYNkws99Cq7/RtUrgT8VCYJRuhqZMpGMOJPrjEIF6PvsBY7B6+u32x1HPCR4gWHBQ==",
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/resin-compose-parse/-/resin-compose-parse-2.1.3.tgz",
"integrity": "sha512-X5WQo+OHoPe+FV8JliGzSIL4glLX0PPFvtnopppYef1UqKcJm+GHaiEZBOj3C7vIEDqQrsNrKXY/BpadlOFiWA==",
"requires": {
"@types/lodash": "^4.14.86",
"@types/node": "^8.0.55",

View File

@ -1,6 +1,6 @@
{
"name": "balena-cli",
"version": "12.50.2",
"version": "12.50.1",
"description": "The official balena Command Line Interface",
"main": "./build/app.js",
"homepage": "https://github.com/balena-io/balena-cli",
@ -265,7 +265,7 @@
"request": "^2.88.2",
"resin-cli-form": "^2.0.2",
"resin-cli-visuals": "^1.8.0",
"resin-compose-parse": "^2.3.0",
"resin-compose-parse": "^2.1.3",
"resin-doodles": "^0.1.1",
"resin-multibuild": "^4.12.2",
"resin-stream-logger": "^0.1.2",
@ -289,6 +289,6 @@
"windosu": "^0.3.0"
},
"versionist": {
"publishedAt": "2021-10-05T09:04:41.226Z"
"publishedAt": "2021-09-30T00:16:32.621Z"
}
}