Pagan Gazzard
2f24e591ef
Avoid unnecessary api calls in balena build
and balena deploy
...
Change-type: patch
2020-05-01 15:58:44 +01:00
Scott Lowe
9b1c3c665b
Refactor: move error related functions into error module
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-01 14:41:39 +02:00
Scott Lowe
153cdf4bb0
Refactor: use checkLoggedIn() instead of exitIfNotLoggedIn()
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-01 14:40:37 +02:00
Pagan Gazzard
cbcd7694a9
Merge qemu-ts.ts and qemu.ts files
2020-05-01 11:43:45 +01:00
Pagan Gazzard
52bece7f17
Convert qemu.js to typescript
...
Change-type: patch
2020-05-01 11:43:44 +01:00
Pagan Gazzard
0df6368ab9
Enforce lazy loading via tslint import-blacklist
...
Change-type: patch
2020-05-01 09:33:29 +00:00
Pagan Gazzard
73d6d7b264
Convert lib/utils/deploy.coffee to javascript
...
Change-type: patch
2020-04-30 16:11:42 +01:00
Pagan Gazzard
4ae91ef846
Only notify of an update if the new version is actually newer
...
Change-type: patch
2020-04-30 12:55:39 +00:00
Scott Lowe
d398e22c58
Integrate livepush v3 and live directives
...
Change-type: minor
Resolves : #1784
Signed-off-by: Scott Lowe <scott@balena.io>
2020-04-30 12:25:17 +00:00
Pagan Gazzard
203ccaf97b
Convert lib/utils/deploy-legacy.coffee to javascript
...
Change-type: patch
2020-04-30 12:50:20 +01:00
Paulo Castro
6d95c5bad5
balena build/deploy: Update QEMU version to support newer balenalib images
...
Change-type: patch
2020-04-30 10:47:51 +01:00
Paulo Castro
74cdd80b51
balena deploy: Fix "TypeError: images.push is not iterable"
...
Change-type: patch
2020-04-29 15:13:51 +01:00
Pagan Gazzard
6ec05e8dcf
Fix unhandled promise rejection when using balena deploy
...
Change-type: patch
2020-04-28 13:22:15 +01:00
Pagan Gazzard
0cfa1a0dfb
Convert lib/actions/device.coffee to javascript
...
Change-type: patch
2020-04-25 14:08:30 +00:00
Pagan Gazzard
560b0abbe7
Convert lib/utils/compose.coffee to javascript
...
Change-type: patch
2020-04-24 16:17:23 +01:00
Pagan Gazzard
23f2242e22
Convert lib/utils/docker-coffee.coffee to javascript
...
Change-type: patch
2020-04-24 15:25:20 +01:00
Pagan Gazzard
9f59b6dde5
Convert lib/utils/qemu.coffee to javascript
...
Change-type: patch
2020-04-24 10:20:15 +01:00
Thodoris Greasidis
3e4f9f9572
device os-update: Refactor to use the overall_progress field
...
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-04-23 16:10:09 +00:00
Pagan Gazzard
9fda165d34
Convert lib/utils/tty to typescript
...
Change-type: patch
2020-04-23 09:42:23 +01:00
Scott Lowe
a2b761ec4b
Convert command scan
to TypeScript, migrate to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-04-22 11:13:40 +00:00
Pagan Gazzard
88e4009e88
Update to balena-release
...
Change-type: patch
2020-04-21 17:39:25 +01:00
Scott Lowe
be82bcfa63
convert commands key
, keys
, key add
, key rm
to oclif.
...
Also:
- Display keys with `name` instead of `title`.
- Check for empty key before calling API.
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-04-20 16:07:39 +02:00
Paulo Castro
655534469a
Review 'instanceof' usage with classes of external packages
...
Change-type: patch
2020-04-18 02:50:00 +01:00
Scott Lowe
320b4864d9
device os-update: allow host OS upgrade with development balenaOS images
...
also:
fix `device os-update` incorrectly showing 0% progress
convert `device os-update` to use async/await
Change-type: minor
Resolves : #1725
Signed-off-by: Scott Lowe <scott@balena.io>
2020-04-15 15:07:10 +02:00
Paulo Castro
159cb752d1
Add '-t' option to 'balena ssh' to bypass TTY autodetection (force allocation)
...
Change-type: patch
2020-03-31 14:50:09 +01:00
Paulo Castro
a74f0413df
Handle ssh process exit codes
...
Change-type: patch
2020-03-31 14:27:30 +01:00
Pagan Gazzard
1a71bad8bb
Convert lib/actions/local/common.coffee to javascript
...
Change-type: patch
2020-03-31 11:57:47 +01:00
Paulo Castro
30738d93b0
Fix "the input device is not a TTY" when piping to 'balena ssh' (local device)
...
Change-type: patch
2020-03-30 14:45:16 +01:00
Paulo Castro
be76b8adbd
Fix 'balena ssh' on MSYS Windows shell ("unexpected end of file")
...
Resolves : #1681
Change-type: patch
2020-03-30 14:45:16 +01:00
Pagan Gazzard
b3b22d6399
Use balena-lint for javascript linting and add javascript type-checking
...
Change-type: patch
2020-03-25 12:12:03 +00:00
Scott Lowe
8658104647
Add support for authentication checking to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-03-24 10:19:18 +01:00
Pagan Gazzard
809a5fae25
Switch to native number check
...
Change-type: patch
2020-03-13 16:15:07 +00:00
Pagan Gazzard
eccb1bd9ad
Switch to native string check
...
Change-type: patch
2020-03-13 16:13:21 +00:00
Pagan Gazzard
f859d5025a
Switch to native Array.isArray
instead of aliases
...
Change-type: patch
2020-03-13 16:09:43 +00:00
Pagan Gazzard
09a59ab03f
Remove dependency on inquirer-dynamic-list
2020-03-12 18:03:10 +00:00
Pagan Gazzard
3d2e109e7f
Update dependencies
...
Update balena-sdk from 12.26.7 to 12.29.1
Change-type: minor
2020-03-12 18:03:10 +00:00
Paulo Castro
5a80654305
Avoid Sentry reporting of selected common "expected" errors
...
Change-type: patch
2020-03-09 12:51:56 +00:00
Cameron Diver
b83431c2e0
Improve the UX by only printing effective file changes in livepush
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-06 15:17:02 +00:00
Paulo Castro
ca8272b477
Fix build --emulated
on Linux ("exec format error")
...
Resolves : #1649
Change-type: patch
2020-03-06 01:51:36 +00:00
Pagan Gazzard
235c13bea9
Switch to object spreading in favor of _.assign
...
Change-type: patch
2020-02-29 22:08:10 +00:00
Pagan Gazzard
98152c0b09
Lazy-load chalk
...
Change-type: patch
2020-02-28 18:34:54 +00:00
Pagan Gazzard
7c62e34455
Simplify lazy-loading of resin-cli-visuals with a shared function
...
This also avoids current unnecessary requiring of resin-cli-visuals
for every command
Change-type: patch
2020-02-28 15:29:07 +00:00
Pagan Gazzard
eac6bb5e5c
Simplify lazy-loading of balena-sdk by utilizing a shared function
...
This also avoids instantiating multiple balena-sdk
Change-type: patch
2020-02-27 17:17:36 +00:00
Paulo Castro
cdfd1d124b
Fix build/deploy commands with QEMU emulation and alternative Dockerfile name
...
Resolves : #1624
Change-type: patch
2020-02-25 16:42:12 -03:00
Cameron Diver
95c93d24da
Update resin-multibuild and add app and release template vars
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-18 10:21:12 +07:00
Paulo Castro
671dca8287
Add project directory validation for balena push / build / deploy commands
...
Change-type: minor
2020-02-17 15:19:07 +00:00
Paulo Castro
a1c406a479
Add '--cache-from' option to balena build and deploy commands
...
It implements the same feature as the "docker build --cache-from" option.
Resolves : #1616
Change-type: minor
2020-02-13 18:43:15 +00:00
Paulo Castro
88a1e413a3
Fix balena push "Segmentation fault" on Windows (replace 'mmmagic' with 'isBinaryFile')
...
Connects-to: #1611
Change-type: patch
2020-02-13 15:51:45 +00:00
Pagan Gazzard
f9ece2ce7d
Convert lib/actions/auth to typescript
...
Change-type: patch
2020-02-12 14:26:32 +00:00
Paulo Castro
be209f1626
Fix Windows standalone zip installer (missing mmmagic db for CRLF conversion)
...
Change-type: patch
2020-02-07 18:19:10 +00:00