Pagan Gazzard
ef9c2e9c18
Switch from Bluebird.each to native version
...
Change-type: patch
2020-06-30 23:59:15 +01:00
Pagan Gazzard
d4f288394b
Switch from Bluebird.map to native version
...
Change-type: patch
2020-06-30 23:59:11 +01:00
Pagan Gazzard
5e94f3f9c9
Add typing info to requires wherever possible
...
Change-type: patch
2020-06-30 23:21:39 +01:00
Pagan Gazzard
209ea64b82
Update dependencies still using balena-sdk 10.x
...
Change-type: patch
2020-06-30 22:19:48 +01:00
Pagan Gazzard
2a3479c7c6
Stop importing specific lodash files
...
We already import the entirety of lodash so importing the individual
files just adds time to also import the single file versions
Change-type: patch
2020-06-30 13:52:08 +01:00
Thodoris Greasidis
3207a2922a
Prepare for field based retrieval of device overall_status
...
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-06-29 22:55:17 +03:00
Thodoris Greasidis
bd4d836a31
Stop using the removed imageMakerUrl balena-sdk argument
...
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-06-29 22:55:17 +03:00
Thodoris Greasidis
6add63c6ac
Add back the device mac_address field
...
Looks like this was accidentally removed during the
oclif refactor of `balena device`
Change-type: patch
See: https://github.com/balena-io/balena-cli/pull/1871
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-06-29 16:04:37 +03:00
Paulo Castro
eaf61d801c
Add --multi-dockerignore (-m) option to push/build/deploy commands
...
Connects-to: #1870
Change-type: minor
2020-06-28 23:55:30 +01:00
Scott Lowe
1308b64c67
Recategorize some errors as expected.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-26 13:57:39 +02:00
Scott Lowe
512cfa3da1
Convert command ssh to oclif.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-26 12:46:27 +02:00
Pagan Gazzard
667358b23e
Import just strip-tags from common-tags to reduce startup time
...
This saves ~100ms for me on startup with no fast-boot cache and ~50ms
with a fast-boot cache
Change-type: patch
2020-06-25 22:56:43 +01:00
Scott Lowe
b50fef8cb4
Improve documentation regarding Windows support for os configure
.
...
Change-type: patch
Resolves : #1812
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-25 13:57:47 +02:00
Pagan Gazzard
b114697cab
Use native fs promises rather than promisify or mz
...
Change-type: patch
2020-06-24 18:13:48 +01:00
Pagan Gazzard
03eed32f12
Simplify some exports
...
Change-type: patch
2020-06-24 15:23:53 +00:00
Pagan Gazzard
6dce5c1212
Use import type
where possible to explicitly import only type info
...
Change-type: patch
2020-06-24 13:46:27 +00:00
Pagan Gazzard
420a282bea
Standardize all references to Bluebird
...
Change-type: patch
2020-06-24 12:38:09 +00:00
Pagan Gazzard
2f7dd54e37
Cache username for a given auth to avoid fetching it every time
...
Change-type: patch
2020-06-24 11:36:43 +00:00
Scott Lowe
4656f8f11d
Make offline device error handling more robust.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-24 12:44:42 +02:00
Scott Lowe
5b5f258685
Improve handling of oclif parser errors.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-24 12:44:42 +02:00
Scott Lowe
7d2e32777f
Convert commands login, logout, whoami to oclif.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-24 12:44:42 +02:00
Pagan Gazzard
7794158062
Stub the errors module without needing two export methods
...
Change-type: patch
2020-06-22 17:16:45 +01:00
Paulo Castro
11d1a3f5a0
Add runtime warning for unused .dockerignore files
...
Change-type: patch
2020-06-22 01:14:27 +01:00
Paulo Castro
2859d16b31
Improve error handling for oclif "missing required arg"
...
Change-type: patch
2020-06-22 01:14:01 +01:00
Scott Lowe
ebb0ec5287
Convert device os-update command to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-19 10:04:39 +02:00
Scott Lowe
ab673f884a
Convert device commands to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-18 13:59:41 +02:00
Paulo Castro
146de39b83
Add --gitignore (-g) option to push/build/deploy commands for v11 compatibility
...
Change-type: minor
2020-06-17 14:18:23 +01:00
Paulo Castro
c619bd4b99
Update 'balena-lint' and apply new prettier rules
...
Change-type: patch
2020-06-15 23:53:07 +01:00
Paulo Castro
19c3069b22
Convert 'logs' command to async/await and add tests
...
Change-type: patch
2020-06-15 23:53:05 +01:00
Paulo Castro
7e1d58546c
Add tests for standalone executable via proxy server
...
Change-type: patch
2020-06-15 23:53:04 +01:00
Paulo Castro
3ecf461d55
Update 'balena-sdk' from v12 to v13 and update code and tests as needed
...
Change-type: patch
2020-06-15 23:53:01 +01:00
Paulo Castro
a7b78d2ccd
Turn v12 feature switch on
...
See https://github.com/balena-io/balena-cli/issues/1770
Change-type: major
2020-06-15 23:52:58 +01:00
Thodoris Greasidis
41e5fdbe27
balena device: Add the mac_address field
...
Connects-to: #1857
HQ: https://github.com/balena-io/balena/issues/2195
Depends-on: https://github.com/balena-io/balena-sdk/pull/914
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-06-11 18:54:53 +03:00
Rich Bayliss
d967b942e0
Allow setting the initialDeviceName
...
Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-06-11 16:02:17 +01:00
Scott Lowe
ff282205d5
Restrict error handler typing
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-10 12:37:09 +02:00
Scott Lowe
555096db6b
Fix handling of BalenaExpiredToken error
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-09 17:40:06 +02:00
Scott Lowe
1569915fae
v12 preparations: Add feature switch for default eol-converson
...
Change-type: patch
Connects-to: #1770
2020-06-05 16:37:44 +01:00
Scott Lowe
728c4f4296
Convert 'balena device public-url' commands to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-06-02 19:00:32 +02:00
Paulo Castro
626d328194
v12 preparations: Add feature switch for build/deploy --logs
option
...
Connects-to: #1770
Change-type: patch
2020-06-02 16:42:51 +01:00
Paulo Castro
2ab8ae1c10
v12 preparations: Add feature switch for project directory validation
...
Connects-to: #1770
Change-type: patch
2020-05-29 22:03:55 +01:00
Paulo Castro
fcc13f9476
v12 preparations: Add feature switch for 'balena apps --verbose'
...
Connects-to: #1770
Change-type: patch
2020-05-29 22:03:39 +01:00
Paulo Castro
a38b41f339
v12 preparations: Add feature switch for 'devices supported' default columns
...
Connects-to: #1770
Change-type: patch
2020-05-29 20:06:14 +01:00
Scott Lowe
6e5e1c4f5f
v12 preparations: Add feature switch for 'envs --all'
...
Change-type: patch
Connects-to: #1770
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-29 17:39:40 +02:00
Scott Lowe
1693bd91c0
v12 preparations: Add feature switch to remove id from 'tags' output
...
Change-type: patch
Connects-to: #1770
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-29 17:07:53 +02:00
Paulo Castro
1d073af31a
v12 preparations: Add feature switch for '--nogitignore'
...
Connects-to: #1770
Change-type: patch
2020-05-29 01:12:15 +01:00
Scott Lowe
979284b071
Convert tags
, tag set
, tag rm
to oclif.
...
Change-type: patch
Resolves : #1805
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-28 19:49:23 +02:00
Scott Lowe
889c7b08cf
v12 preparations: Add version switch, update login message.
...
Change-type: patch
Connects-to: #1770
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-27 18:29:36 +02:00
Paulo Castro
ba0024645d
balena deploy: Fix "access denied" pushing images to registry
...
Change-type: patch
2020-05-25 17:10:17 +01:00
Pagan Gazzard
a6f905b71c
Fix lazy loading in utils/compose
...
Change-type: patch
2020-05-25 15:35:03 +01:00
Scott Lowe
1c354c800b
Replace windows dns workaround with single lookup
...
Change-type: patch
Connects-to: #1518
Resolves : #1727
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-22 12:14:58 +00:00
Paulo Castro
8522363cd3
Convert selected functions to Typescript and async/await (compose.js)
...
Connects-to: #1045
Change-type: patch
2020-05-22 00:24:46 +01:00
Paulo Castro
480228d8f4
Add tests for 'balena deploy'
...
Connects-to: #1045
Change-type: patch
2020-05-22 00:24:46 +01:00
Cameron Diver
77f3fa4b6c
Fix caching by preserving all file stats when pushing to device or cloud
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-21 12:01:34 +01:00
Scott Lowe
92bfa574e3
Add unit tests for errors module
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
Resolves : #1807
2020-05-19 12:39:46 +02:00
Pagan Gazzard
744122b1b8
Update typescript to 3.9
...
Change-type: patch
2020-05-18 13:32:15 +01:00
Paulo Castro
3bb5e495a6
Fix 'balena login' web authorization hanging with Google Chrome
...
Resolves : #1404
Change-type: patch
2020-05-16 23:32:07 +01:00
Paulo Castro
803a9070fd
Update web page wording for 'balena login' web authorization
...
Resolves : #1710
Change-type: patch
2020-05-16 00:01:09 +01:00
Paulo Castro
a84ab793a0
Update balena preload
help message (clarify accepted image formats)
...
Connects-to: #1810
Change-type: patch
2020-05-16 00:00:22 +01:00
Paulo Castro
be21c8d43e
balena apps: add --verbose option to list application slugs (full app name)
...
Change-type: minor
2020-05-14 11:15:51 +01:00
Paulo Castro
5b33826309
balena app create: fix application existence check
...
Resolves : #1824
Change-type: patch
2020-05-14 11:15:51 +01:00
Paulo Castro
4577d72ead
push/build/deploy: add --nogitignore option and update dockerignore filter library
...
Connects-to: #1032
Connects-to: #1148
Change-type: minor
2020-05-13 22:33:37 +01:00
Cameron Diver
4e50d08f7b
Fix usage of livepush v3 features
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-12 09:24:05 +01:00
Paulo Castro
8d60cd1f92
Fix 'balena app' (rm, restart, info) with numeric app IDs
...
Resolves : #1815
Change-type: patch
2020-05-11 19:27:49 +01:00
Scott Lowe
98a2c0635d
Improve presentation of errors, help
...
Change-type: patch
Resolves : #1779 #1757
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-06 10:48:50 +02:00
Scott Lowe
83286e6729
Convert balena api-key generate
to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-04 13:50:50 +02:00
Pagan Gazzard
1301f62981
Configure the sentry command scope earlier
...
Change-type: patch
2020-05-04 10:04:44 +01:00
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
Scott Lowe
3b519f0258
Convert app commands to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-05-01 08:48:58 +02:00
Pagan Gazzard
ab526c9ed8
Convert gulpfile.coffee to javascript
...
Change-type: patch
2020-04-30 17:58:13 +01:00
Pagan Gazzard
14c5b27cdd
Convert lib/app-capitano.coffee to javascript
...
Change-type: patch
2020-04-30 17:57:37 +01:00
Pagan Gazzard
6d7d1956ea
Convert lib/actions/index.coffee to typescript
...
Change-type: patch
2020-04-30 17:04:12 +01:00
Pagan Gazzard
73d6d7b264
Convert lib/utils/deploy.coffee to javascript
...
Change-type: patch
2020-04-30 16:11:42 +01:00
Pagan Gazzard
4d8cd1cc46
Convert lib/actions/build.coffee to javascript
...
Change-type: patch
2020-04-30 15:17:18 +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
Pagan Gazzard
a97398950e
Convert lib/actions/help.coffee to javascript
...
Change-type: patch
2020-04-30 10:56:48 +00: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
Scott Lowe
db247307db
Add support for global --debug flag
...
Change-type: patch
Resolves : #1777
Signed-off-by: Scott Lowe <scott@balena.io>
2020-04-29 17:25:05 +02: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
e1a91035ae
Convert lib/actions/preload.coffee to javascript
...
Change-type: patch
2020-04-24 22:44:10 +00:00
Pagan Gazzard
1a851f552e
Convert lib/actions/config.coffee to javascript
...
Change-type: patch
2020-04-24 21:06:23 +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
a5ce0436c7
Convert lib/actions/os.coffee to javascript
...
Change-type: patch
2020-04-24 13:38:34 +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
c3454d3abb
Remove unnecessary files
...
Change-type: patch
2020-04-23 11:21:38 +00:00
Pagan Gazzard
da5e26f37e
Convert lib/actions/local/index.coffee to typescript
...
Change-type: patch
2020-04-23 11:30:04 +01:00
Pagan Gazzard
9447195c26
Convert lib/actions/local/configure.coffee to javascript
...
Change-type: patch
2020-04-23 11:12:02 +01: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