Tim Perry
0ba96adbbc
Fix breakage in deploy command from recent TS conversion
...
Change-Type: patch
2018-01-11 10:33:08 +01:00
Tim Perry
83a76f7d6f
Start using Prettier
...
Change-Type: patch
2018-01-10 09:23:00 +01:00
Tim Perry
612012aff8
Lots of small TypeScript tweaks & clarifications from review
2018-01-09 17:14:49 +01:00
Tim Perry
6daed83d88
Lint TypeScript and CoffeeScript with resin-lint
...
Change-Type: patch
2018-01-09 17:14:49 +01:00
Tim Perry
f25442c036
Move documentation generation to TypeScript
...
Change-Type: patch
2018-01-09 17:14:49 +01:00
Tim Perry
ffffd447f2
Convert most of utils to TypeScript
...
Change-Type: patch
2018-01-09 17:14:48 +01:00
Tim Perry
4b511c47f0
Start on some easy TS conversion
2018-01-09 17:14:48 +01:00
Andrew Shirley
ce5fd53822
convert windows paths to posix when passing to tar
...
Due to https://github.com/mafintosh/tar-stream/issues/3 , the tar module
needs posix style paths but system-specific paths are being supplied
Change-Type: patch
2018-01-08 22:50:11 +00:00
Tim Perry
34f24fe331
Fix deprecation warning for os configure, when passing a bare UUID
...
Change-Type: patch
2017-12-22 16:07:19 +01:00
Andreas Fitzek
0653769156
fixed example
2017-12-18 17:03:16 +01:00
Andreas Fitzek
3ed319872a
refactored
2017-12-18 17:03:16 +01:00
Andreas Fitzek
ee124671d8
mention Resin OS version requirement
2017-12-18 17:03:16 +01:00
Andreas Fitzek
1b4dabd37c
Add ssh option for direct host OS access
...
Use the `--host` (short `-H`) option in the ssh command to access
the host OS of the device.
Direct host OS is enabled for devices with Resin OS >= 2.7.5.
Change-Type: minor
Connects-To: #736
Signed-off-by: Andreas Fitzek <andreas@resin.io>
2017-12-18 17:03:16 +01:00
Tim Perry
dba8db19cb
Move from open to opn
...
Change-Type: patch
2017-12-18 14:55:07 +01:00
Tim Perry
1c7a0ba4e1
Ensure logout works even with invalid credentials, or if not logged in
...
Before this point, if you had an invalid token, an expired token, or a
token for a different site, you couldn't log out to clear it properly.
Not a big deal, but awkward and messy, and easily fixed.
Change-Type: patch
2017-12-14 15:34:36 +01:00
Tim Perry
bd6cb04a2b
Replace underscore.string usage with lodash
2017-11-27 12:03:04 +02:00
Tim Perry
001c8f9601
Inline the entire resin-cli-auth module
...
This is part of a general push to demodularize any code that isn't
realistically reusable outside resin-cli, to make the codebase easier to
manage and understand. Once this is done, we'll deprecate the original
module itself.
Change-Type: patch
2017-11-27 12:02:57 +02:00
Tim Perry
eb68bb1a1a
Set up TypeScript compilation, and make a small start on converting the CLI
...
Change-Type: patch
2017-11-23 19:28:15 +02:00
Tim Perry
49d78c56fa
Print a deprecation message if you use the old os configure format
2017-11-16 19:51:34 +01:00
Tim Perry
e38a0c0047
Allow os configure
to configure for an app, not just a specific device
...
This moves to --app and --uuid options, and deprecates the previous
format, but doesn't immediately remove it so this is not a breaking
change.
Connects-To: #691
Change-Type: minor
2017-11-16 19:51:34 +01:00
Tim Perry
eef0d9cdbe
Print help even for expected errors
...
Change-Type: patch
2017-11-16 19:51:17 +01:00
Tim Perry
08c40195e5
Make sure everything uses the same shared deviceApiKey option
2017-11-16 19:09:20 +01:00
Tim Perry
87f46cb957
Allow non-interactice config generate for simple network settings
...
Fixes #695
Fixes #410
Change-Type: minor
2017-11-16 15:04:58 +01:00
Tim Perry
f7075d7db9
Fix issue where network settings were not used by config generate
...
Change-Type: patch
2017-11-16 15:03:49 +01:00
Tim Perry
1fafe64579
Remove resin promote command (which has never worked) to wait for larger resinOS provisioning updates
...
This would be a major change if the command was ever successful, but it
appears it hasn't ever worked for any available published version of
ResinOS, so it's not possible that there are users relying on it.
Change-Type: patch
2017-11-15 14:46:22 +01:00
Tim Perry
890a02e2c8
Fix 'cannot read property R_OK of undefined' error in Node >=6 <6.3
...
Change-Type: patch
2017-11-11 12:29:49 +01:00
Tim Perry
a2635f47ee
Avoid AmbiguousApplication errors in device register when an id is used
...
Change-Type: patch
Connects-To: #665
2017-11-09 16:03:06 +01:00
Alexis Svinartchouk
eef192ff68
Allow preloading jetson-tx2 images, improve flasher images detection and remove the --dont-detect-flasher-type-images option.
...
* update resin-preload to 5.0.0
Connects-To: #705
Change-Type: minor
2017-10-27 12:14:27 +02:00
Alexis Svinartchouk
3bca36c277
Allow specifying --commit=latest
for resin preload
...
Connects-To: #700
Depends-On: https://github.com/resin-io/resin-preload/pull/137
Change-Type: patch
2017-10-25 12:09:08 +02:00
Alexis Svinartchouk
19ce4c4cdb
Respect the -dont-check-device-type option, fix error message
...
Connects-To: #696
Change-Type: patch
2017-10-24 16:45:36 +02:00
Tim Perry
2d43e47610
Add device api keys warning on device register and os configure
2017-10-18 13:43:16 +02:00
Tim Perry
a8f1d16b26
Make resin os configure
safe with device keys for all ResinOS versions
2017-10-18 13:43:16 +02:00
Tim Perry
8e95757f47
Make resin config generate
safe for all ResinOS versions
2017-10-18 13:43:16 +02:00
Pagan Gazzard
3fd4f328ab
Added a device api key parameter to the os configure
command.
...
Change-Type: minor
2017-10-18 13:43:16 +02:00
Pagan Gazzard
97eaf174ec
Added a --device-api-key
option to the config generate
command.
...
Change-Type: minor
2017-10-18 13:43:16 +02:00
Pagan Gazzard
2ef56a9a3f
Added a --device-api-key
option to the device register
command.
...
Change-Type: minor
2017-10-18 13:43:16 +02:00
Tim Perry
0e4c6c459c
Fix issue where os download
would always download prod images
...
This also adds support for submodules using resin-sdk shared options
rather than resin-sdk-preconfigured.
Change-Type: patch
Connects-To: #688
2017-10-17 21:20:35 +02:00
Alexis Svinartchouk
119fa78927
Update resin-preload to 4.0.2 to support preloading Edison images
...
Change-Type: patch
2017-10-16 19:27:12 +02:00
Tim Perry
82888de036
Document how to resin deploy
to an app as a collaborator
...
Change-Type: patch
2017-10-13 16:13:46 +02:00
Tim Perry
3df7bfe700
Ensure hostname truly is optional when configuring device images
...
Change-Type: patch
2017-10-09 12:03:31 +02:00
Alexis Svinartchouk
10976bed43
Fix resin preload --splash-image argument handling
...
Connects-To: #677
Change-Type: patch
2017-10-06 11:16:06 +02:00
Tim Perry
eb729d149e
Ensure analytics failures (e.g. from broken tokens) at startup don't break commands
...
Change-Type: patch
2017-10-05 19:03:01 +02:00
Tim Perry
492e35e5c2
Fix lodash bugs in device move & quickstart
...
Change-Type: patch
2017-08-31 20:22:36 +08:00
Tim Perry
2bbd45e867
Use DOCKER_HOST from env if possible, and no connection options are available
...
Connects-to: #625
Change-Type: patch
2017-08-31 15:18:32 +08:00
Alexis Svinartchouk
223432406d
Add a --dont-check-device-type option for resin preload
...
Connects-To: #646
Change-Type: minor
2017-08-25 12:27:38 +02:00
Alexis Svinartchouk
e0d661a1da
Remove resin-preload build filtering workaround.
...
Connects to #640
Change-Type: patch
2017-08-24 12:39:17 +02:00
Alexis Svinartchouk
b07a394592
Add progress bars and spinners for resin preload.
...
Connects-To: #628
Change-Type: minor
2017-08-22 18:42:20 +02:00
Alexis Svinartchouk
c6c2f0bedc
Don't try preloading the same build twice in an image.
...
Connects to #626
Change-Type: patch
2017-08-21 19:24:30 +02:00
Alexis Svinartchouk
115e46573b
Use _.fromPairs instead of _.object which was removed in lodash 4.0.0
...
Connects-To: #636
Change-Type: patch
2017-08-21 10:01:25 +02:00
Alexis Svinartchouk
999f269e36
Fix resin preload when a commit is provided.
...
Connects-To #629
Change-Type: patch
2017-08-18 09:37:37 +02:00