Scott Lowe
8cb413c1c9
Convert deploy command to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-08-22 11:58:10 +02:00
Scott Lowe
358a909214
Shorten env add
command summary to prevent wrapping
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-08-21 12:43:12 +02:00
Paulo Castro
af1c4b0d03
build: Fix --buildArg and --cache-from options (broken since v12.9.9)
...
Change-type: patch
2020-08-14 23:12:12 +01:00
Pagan Gazzard
c1a5718364
Avoid trying to refresh token in tests
2020-08-11 17:54:39 +01:00
Pagan Gazzard
e021ad9af6
Update balena-sdk to 15.x
...
Update balena-config-json from 4.0.0 to 4.1.0
Update balena-image-manager from 7.0.1 to 7.0.3
Update balena-preload from 10.2.0 to 10.2.4
Update balena-sdk from 14.8.0 to 15.2.1
Update balena-sync from 11.0.0 to 11.0.2
Change-type: patch
2020-08-11 17:53:33 +01:00
Pagan Gazzard
c35472e94d
Tests: Specify es2018 as preferred, matching normal usage
...
Change-type: patch
2020-08-11 16:07:23 +01:00
Pagan Gazzard
511bb05cb9
Tests: Use a tmp data dir to avoid conflicts/overwriting existing data
...
Change-type: patch
2020-08-11 16:05:28 +01:00
Pagan Gazzard
53b2b54b23
Tests: Use a mocha file helper to always load config-tests first
...
Change-type: patch
2020-08-11 16:04:28 +01:00
Pagan Gazzard
497c8cd49b
Lazy load tar-stream
...
Change-type: patch
2020-08-10 12:01:55 +01:00
Pagan Gazzard
e1c42405a1
Update balena-sdk to 14.x
...
Update balena-sdk from 13.6.0 to 14.8.0
Change-type: patch
2020-08-07 21:06:07 +00:00
Paulo Castro
e8eb031253
Live push: Accept Dockerfile ENV instructions in live push to local device
...
Update livepush, chokidar and @types/dockerode dependencies
Change-type: minor
2020-08-07 21:09:47 +01:00
Paulo Castro
62dfae371c
devices: Add '--json' option to help with scripting
...
Change-type: minor
2020-08-07 15:27:42 +01:00
Paulo Castro
94f3825119
Tests: add verification of 'pkg' warnings against saved output
...
Change-type: patch
2020-08-07 01:47:31 +01:00
Nick Neisen
bab98df87b
env add: Add ability to add env var to multiple locations in one command
...
Change-type: minor
2020-08-04 17:40:26 -06:00
Thodoris Greasidis
a52a623fdf
Update balena-release to v3
...
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2020-08-04 15:35:29 +00:00
Paulo Castro
cf894d98a5
login: Use any free port number instead of 8989 for web authentication
...
Change-type: minor
2020-08-03 20:26:10 +01:00
Nick Neisen
47e9d39c6f
device rm: Add ability to remove multiple devices in one command
...
Change-type: minor
2020-07-30 10:31:48 -06:00
Scott Lowe
09b8cc495c
Convert command build
to typescript, oclif, and refactor
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-30 15:53:55 +02:00
Pagan Gazzard
5d7d687d6c
Tests: improve reliability of os/configure.spec.ts
...
Change-type: patch
2020-07-30 13:24:41 +01:00
Scott Lowe
0f058a4441
Convert command push
to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-29 10:53:17 +00:00
Scott Lowe
56cc70cd50
Convert config
commands to typescript, oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-29 12:11:18 +02:00
Scott Lowe
3fc25cd745
Convert os build-config
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-28 15:33:28 +00:00
Paulo Castro
7eb398c6ef
devices supported: Rename 'BETA' to 'NEW' in verbose output
...
Change-type: patch
2020-07-27 20:23:51 +00:00
Scott Lowe
b7c74598b2
Convert os initialize
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-16 16:06:41 +02:00
Nick
edaf76e329
device move: Add ability to move multiple devices in one command
...
Change-type: minor
2020-07-15 08:26:31 -06:00
Scott Lowe
1c17572db0
Convert os download
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-14 23:42:39 +02:00
Scott Lowe
41635c746b
Convert os versions
to oclif, typescript
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-14 17:11:30 +02:00
Scott Lowe
7ebc94c1e5
Convert local flash
to oclif
...
Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
2020-07-10 11:55:24 +02:00
Paulo Castro
6fe8fb7c6e
Test cases: Re-add nock checks for unexpected HTTP requests
...
Connects-to: #1910
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
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
Paulo Castro
69e9222703
balena ssh: Add test cases
...
Connects-to: #1896
Change-type: patch
2020-07-03 18:53:56 +01: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
5e94f3f9c9
Add typing info to requires wherever possible
...
Change-type: patch
2020-06-30 23:21:39 +01: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
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
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
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
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
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
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