Commit Graph

1852 Commits

Author SHA1 Message Date
Akis Kesoglou
916cc36430 Lazily import resin-image-fs
If for whatever reason resin-image-fs is not importable — eg. if it’s built for another arch — any command that imports `helpers.ts` will just quit without any error/traceback.
2018-07-20 13:04:26 +03:00
Akis Kesoglou
27b877dd33 Forward root CA to device config if one is present 2018-07-19 22:34:31 +03:00
Akis Kesoglou
5cbe1c410f Add join/leave commands to promote and move devices between platforms
Both commands work with local devices by remotely invoking the `os-config` executable via SSH. This requires an as of yet unreleased resinOS (that will most likely be v2.14) and the commands ascertain compatibility merely by looking for the `os-config` executable in the device, and bail out if it’s not present.

`join` and `leave` accept a couple of optional arguments and implement a wizard-style interface if these are not given. They allow to interactively select the device and the application to promote to. If the user has no apps, `join` will offer the user to create one. `join` will also offer the user to login or create an account if they’re not logged in already without exiting the wizard.

`resin-sync` (that's used internally to discover local devices) requires admin privileges. If no device has been specified as an argument, the commands will launch the device scanning process in a privileged subprocess via two new internal commands: `internal sudo` and `internal scanDevices`. This avoids having the user to invoke the commands with sudo and only request escalation if truly needed. This commit also removes the dependency to “president”, implementing “sudo” functionality within the CLI.

Change-Type: minor
2018-07-19 22:18:02 +03:00
Akis Kesoglou
7846af390e Improve selectFromList function signature to be much more reusable 2018-07-19 21:53:43 +03:00
resin-io-versionbot[bot]
79d9ebc805
Auto-merge for PR #923 via VersionBot
Update OS & config actions to the MC SDK, and add a --version option
2018-07-17 15:43:30 +00:00
resin-io-versionbot[bot]
25b853c535 v7.7.4 2018-07-17 15:35:26 +00:00
Tim Perry
a93141343f Update TypeScript to 2.8.1
Change-Type: patch
2018-07-17 16:48:14 +02:00
Tim Perry
9a467c5ecd Pin all type modules 2018-07-17 15:59:31 +02:00
Tim Perry
70be2ae596 Tweaks to config options handling after review 2018-07-17 15:38:38 +02:00
Tim Perry
36eb0a108e Post-review tweaks to OS actions 2018-07-13 19:34:59 +02:00
Tim Perry
0bf6fb1739 Add --version options to os configure & config generate
This is used to ensure the correct type of API key is used in all
configuration.

Change-Type: patch
2018-07-13 19:34:59 +02:00
Tim Perry
892adf4c47 Update OS & config actions to the latest SDK
Fixes #915
Change-Type: patch
2018-07-13 19:34:59 +02:00
resin-io-versionbot[bot]
5d1d004b72
Auto-merge for PR #927 via VersionBot
Update the CLI deploy key since npm invalidated the old one
2018-07-13 17:21:18 +00:00
resin-io-versionbot[bot]
dea5a60b2d v7.7.3 2018-07-13 17:05:32 +00:00
Tim Perry
652a1b7650 Update the deploy key since npm invalidated the old one
Change-Type: patch
2018-07-13 16:39:56 +02:00
resin-io-versionbot[bot]
350843af1e
Auto-merge for PR #926 via VersionBot
Pin ext2fs to 1.0.7 to avoid temporary deployment issues
2018-07-13 11:40:25 +00:00
resin-io-versionbot[bot]
e04c4a8ee3 v7.7.2 2018-07-13 11:33:13 +00:00
Tim Perry
9d0c3f7535 Pin ext2fs to 1.0.7 to avoid temporary deployment issues
Change-Type: patch
2018-07-13 13:20:53 +02:00
resin-io-versionbot[bot]
9561d4da2e
Auto-merge for PR #925 via VersionBot
Update logs to use new v10 MC SDK
2018-07-12 13:59:28 +00:00
resin-io-versionbot[bot]
8296dcf946 v7.7.1 2018-07-12 13:52:10 +00:00
Tim Perry
e62e8b88c2 Simplify logs promises after review 2018-07-12 15:38:27 +02:00
Tim Perry
4388a248b9 Make sure we don't duplicate historical logs when streaming 2018-07-12 15:23:33 +02:00
Tim Perry
f9cf0aaf23 Remove a couple of artifacts of the pubnub logs implementation 2018-07-12 15:10:16 +02:00
Tim Perry
dc9ee09838 Update CLI to SDK v10 (include new API logs)
Change-Type: patch
2018-07-12 01:03:16 +02:00
Tim Perry
7cb27283c5 Update logs action to use the MC SDK 2018-07-12 01:03:16 +02:00
resin-io-versionbot[bot]
10a9840b34
Auto-merge for PR #921 via VersionBot
Add --generate-device-api-key parameter to config generate
2018-07-11 04:28:25 +00:00
resin-io-versionbot[bot]
ce3e04bfe8 v7.7.0 2018-07-11 04:21:42 +00:00
Tim Perry
52f93f8f12 Add --generate-device-api-key parameter to config generate
Change-Type: minor
2018-07-10 19:57:56 +02:00
resin-io-versionbot[bot]
af9e1a122d
Auto-merge for PR #910 via VersionBot
Make local commands more resilient to unnamed containers
2018-06-28 16:26:11 +00:00
resin-io-versionbot[bot]
9017b8ec11 v7.6.2 2018-06-28 12:55:34 +00:00
Tim Perry
bf4f687a2a Make local commands more resilient to unnamed containers
Change-Type: patch
2018-06-28 12:34:31 +02:00
resin-io-versionbot[bot]
9d4e6eb825
Auto-merge for PR #907 via VersionBot
Make sure 'resin push' is included in the CLI docs
2018-06-26 17:22:44 +00:00
resin-io-versionbot[bot]
fba4afb7d2 v7.6.1 2018-06-26 17:15:20 +00:00
Tim Perry
8c74f784f7 Make sure 'resin push' is included in the docs
Fixes #906
Change-Type: patch
2018-06-26 19:00:20 +02:00
resin-io-versionbot[bot]
69ca1ffa59
Auto-merge for PR #896 via VersionBot
Support pinned release preloading
2018-06-20 17:00:12 +00:00
resin-io-versionbot[bot]
7d1b00877e v7.6.0 2018-06-20 16:50:01 +00:00
Cameron Diver
1a48fed1f7
Support pinned release preloading
Change-type: minor
Closes: #886
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-06-13 12:29:30 +01:00
resin-io-versionbot[bot]
bc86359e63
Auto-merge for PR #893 via VersionBot
Document Python native build dependency
2018-06-12 18:33:47 +00:00
resin-io-versionbot[bot]
f6822f1502 v7.5.2 2018-06-12 18:26:12 +00:00
Tim Perry
398c34d842 Includes new prettier changes, and pin prettier to stop more appearing 2018-06-12 17:43:15 +02:00
Tim Perry
72a893be95 Document Pyhton native build dependency
Change-Type: patch
2018-06-12 17:11:45 +02:00
resin-io-versionbot[bot]
7b23b0e103
Auto-merge for PR #887 via VersionBot
Add a multicontainer caveat to the env var commands
2018-06-01 11:10:33 +00:00
resin-io-versionbot[bot]
0ce7878042 v7.5.1 2018-06-01 10:49:15 +00:00
Tim Perry
da8483e6a6 Add a multicontainer caveat to the env var commands
Change-Type: patch
2018-06-01 12:37:29 +02:00
resin-io-versionbot[bot]
16f70fd946
Auto-merge for PR #883 via VersionBot
Update resin-compose-parse dependency version
2018-05-31 16:16:47 +00:00
resin-io-versionbot[bot]
78aa898b37 v7.5.0 2018-05-31 16:07:38 +00:00
Ariel Flesler
b7f94a222d Update resin-compose-parse dependency version to 1.10.2
Change-type: minor
2018-05-30 11:57:04 -03:00
resin-io-versionbot[bot]
7bea2c26b8
Auto-merge for PR #879 via VersionBot
Update SDK for device commands, so we show new device dashboard URLs
2018-05-24 14:13:01 +00:00
resin-io-versionbot[bot]
7c178b8095 v7.4.1 2018-05-24 14:03:02 +00:00
Tim Perry
865f085094 Make sure we still show the device commit, despite API changes 2018-05-24 14:43:45 +01:00