Paulo Castro
17a9d71e59
Disable mixpanel.track() calls while running automated tests
...
Change-type: patch
2020-07-09 19:54:03 +01:00
Thodoris Greasidis
477c48f831
Device: Fix the last_seen field not showing up
...
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-07-09 18:12:13 +00:00
Thodoris Greasidis
fb9943a375
Device: explicitly fetch only the presented fields
...
Depends on open-balena adding the mac_address &
the overall_status device fields, but the latest cli
version is probably already not working, since some
of its dependencies already use the v14 SDK which
needs the v6 model, that the open-balena-api doesn't
have yet either.
Change-type: minor
See: https://www.flowdock.com/app/rulemotion/i-cli/threads/SaSXFlJEv-dpk9uUngWY225zv2D
See: https://github.com/balena-io/open-balena-api/issues/388
See: https://github.com/balena-io/open-balena-api/issues/338
See: https://github.com/balena-io/balena-sdk/issues/920
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-07-09 18:12:13 +00:00
Pagan Gazzard
d6f1328238
Be lazier with imports in oclif actions
...
Change-type: patch
2020-07-09 15:03:38 +01:00
Scott Lowe
6f265b24aa
Convert util available-drives
to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-09 13:58:59 +02:00
Pagan Gazzard
eea8c83bff
Enforce and improve lazy loading of resin-cli-form
...
Change-type: patch
2020-07-09 10:51:10 +01:00
Pagan Gazzard
5242510481
Reduce lodash usage in oclif actions
...
Change-type: patch
2020-07-08 18:04:28 +01:00
Vipul Gupta (@vipulgupta2048)
b1ab0337c0
Improve help description for --nocache option of balena push
...
Change-type: patch
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
2020-07-08 15:37:08 +00:00
Pagan Gazzard
11afbf3da2
Remove rindle dependency
...
Change-type: patch
2020-07-08 15:28:44 +01:00
Paulo Castro
f326994f8e
build/deploy/preload: Accept DOCKER_CERT_PATH and DOCKER_TLS_VERIFY env vars
...
This allows the build and deploy commands to work with 'docker-machine'
(the preload command still does not work with docker-machine, though).
Resolves : #1844
Change-type: minor
2020-07-06 23:07:02 +01:00
Scott Lowe
e20265518d
Modify runCommand to accept args array instead of string
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-06 12:49:37 +02:00
Scott Lowe
4cdaf29348
Convert logs
command to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-06 11:46:15 +02:00
Thodoris Greasidis
497023965f
config generate, os configure: Add support for mixed arch fleets
...
Resolves : #1914
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-07-03 22:03:18 +00:00
Thodoris Greasidis
edeea18b15
os download: Allow not logged in users to download images
...
This allows unauthenticated users to download
unconfigured images. Balena-pine v11 that started
being user by balena-sdk v13 now support
unauthenticated requests.
Change-type: minor
See: https://github.com/balena-io/balena-cli/pull/1742
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-07-03 21:31:13 +00:00
Paulo Castro
238e5cb9d2
Update os download
help re openBalena support
...
Change-type: patch
2020-07-03 14:50:17 +01:00
Scott Lowe
40f643c07f
Convert device init
to async await and oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-02 20:33:58 +02:00
Scott Lowe
402e48c8f8
Fix cross-framework nested commands
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-02 20:33:05 +02:00
Pagan Gazzard
178c3f9154
Remove all module level bluebird usage from eagerly loaded modules
...
Change-type: patch
2020-07-02 14:00:26 +01:00
Pagan Gazzard
c35f701190
Convert lib/actions-oclif/tunnel to async/await
...
Change-type: patch
2020-07-02 11:02:41 +00:00
Paulo Castro
2307a15b10
balena ssh: Refactor error handling and test cases
...
Connects-to: #1896
Change-type: patch
2020-07-02 00:50:32 +01:00
Pagan Gazzard
f6ca5ef397
Enable long stack traces for --debug
as well as DEBUG=1
...
Change-type: patch
2020-07-01 13:03:42 +00:00
Scott Lowe
9697081d73
Convert command tunnel
to oclif, and fix port map spec issues.
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-01 11:25:09 +02:00
Pagan Gazzard
303c3af061
Switch from Bluebird.join to native version
...
Change-type: patch
2020-06-30 23:59:18 +01:00
Pagan Gazzard
984d1a3fd6
Switch from new Bluebird to native version
...
Change-type: patch
2020-06-30 23:59:17 +01:00
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