Commit Graph

511 Commits

Author SHA1 Message Date
Juan Cruz Viotti
2b4394f3ce Merge pull request #21 from resin-io/fix/progress-context
Bind progress update function to avoid context issues
2015-04-17 14:45:17 -04:00
Juan Cruz Viotti
caa4fcf754 Bind progress update function to avoid context issues 2015-04-17 10:11:02 -04:00
Juan Cruz Viotti
a6dc155028 Add lodash dependency to lib/elevate.coffee
Depedency was missing and thus elevating functions threw errors.
2015-04-17 09:22:21 -04:00
Juan Cruz Viotti
a96ab487ba Fix bug with login with token
The commit was merged from an older branch, in which settings was
still part of the SDK.
2015-04-08 08:25:27 -04:00
Juan Cruz Viotti
cd28c985ce Merge pull request #9 from resin-io/feature/version
Remove bundled node version from version command
2015-04-07 10:56:18 -04:00
Juan Cruz Viotti
727af42ad4 Merge pull request #8 from resin-io/feature/login-with-token
Login with token
2015-04-07 08:12:12 -04:00
Juan Cruz Viotti
4a7d3d5945 Mock local Raspberry Pi bundle 2015-04-07 08:10:26 -04:00
Juan Cruz Viotti
03f05305cf Fix tiny text issue 2015-04-07 08:07:06 -04:00
Juan Cruz Viotti
8533a4a303 Remove bundled node version from version command 2015-04-06 17:18:00 -04:00
Juan Cruz Viotti
064afd6705 Fetch TOKEN_URL from the resin sdk 2015-04-06 17:05:13 -04:00
Juan Cruz Viotti
978ff91f87 Remove tab query from preferences token url constant
Tab queries were removed from the web frontend.
2015-04-06 17:04:43 -04:00
Juan Cruz Viotti
1cd0f02db5 Attempt to open a browser to the token location automatically 2015-04-06 17:04:03 -04:00
Juan Cruz Viotti
77695bb505 Allow login with token 2015-04-06 17:02:53 -04:00
Juan Cruz Viotti
4e4428fdbb Move windosu elevate logic to another module 2015-04-06 16:49:53 -04:00
Juan Cruz Viotti
2a4ba895e5 Elevate privileges of update command if necessary 2015-04-01 12:51:04 -04:00
Juan Cruz Viotti
782c92885d Use child_process to trigger self update
Using the NPM API led to weird issues.

See https://github.com/npm/npm/issues/7723.
2015-03-24 08:44:02 -04:00
Juan Cruz Viotti
a14dfa6cf1 Fix long line lint warning 2015-03-23 18:32:28 -04:00
Juan Cruz Viotti
f3b6f9d117 Add missing example to device init 2015-03-23 08:25:45 -04:00
Juan Cruz Viotti
df9c4ce2fd Reference applications and devices by name 2015-03-23 08:17:55 -04:00
Juan Cruz Viotti
cd8bb7882e Reimplement whoami command 2015-03-19 15:57:43 -04:00
Juan Cruz Viotti
a524bffaa2 Integrate with SDK v1.0.0 2015-03-19 11:45:07 -04:00
Juan Cruz Viotti
fa258a84cc Show a spinner if no progress state in os download command 2015-03-16 11:45:17 -04:00
Juan Cruz Viotti
5efa7309be Fix bug in device init 2015-03-16 11:06:44 -04:00
Juan Cruz Viotti
80e0f20301 Make device init attempt to get application id from current directory 2015-03-12 12:03:59 -04:00
Juan Cruz Viotti
8410a709c9 Make use of resin-vcs instead of using gitwrap directly 2015-03-12 11:24:36 -04:00
Juan Cruz Viotti
53197856ab Extend device init help message 2015-03-11 09:05:20 -04:00
Juan Cruz Viotti
cb5bb69b47 Get rid of gitCli in favor of gitwrap 2015-03-11 09:03:13 -04:00
Juan Cruz Viotti
4bfe52d73b Require CLI to be updated when running os install 2015-03-11 08:49:26 -04:00
Juan Cruz Viotti
9d8228e1c6 Add ENOGIT specific error message 2015-03-10 13:56:55 -04:00
Juan Cruz Viotti
8fbde4c452 Make use of gitwrap 2015-03-10 10:03:49 -04:00
Juan Cruz Viotti
0cc1765a1e Regenerate documentation 2015-03-09 19:49:46 -04:00
Juan Cruz Viotti
f0346b1fd0 Allow to interactively configure network for os download 2015-03-09 19:42:43 -04:00
Juan Cruz Viotti
1bb798a8b8 Get rid of automatic cache name generation logic 2015-03-09 12:38:37 -04:00
Juan Cruz Viotti
6ba97cd961 Automate resin init command 2015-03-09 09:14:39 -04:00
Juan Cruz Viotti
9c7b36e1d8 Improve resin update help section 2015-03-04 14:47:46 -04:00
Juan Cruz Viotti
cefa9d1e31 Fix bug with update command 2015-03-04 14:46:34 -04:00
Juan Cruz Viotti
06020c0344 Implement self update functionality and notification 2015-03-04 14:40:40 -04:00
Juan Cruz Viotti
9038b76d73 Implement resin update command 2015-03-04 14:03:08 -04:00
Juan Cruz Viotti
a1e6c6cda5 Stop bundling NodeJS in the package 2015-03-04 12:16:35 -04:00
Juan Cruz Viotti
4aefb15c70 Prevent resin-write infinite loop 2015-03-03 12:39:41 -04:00
Juan Cruz Viotti
b2444feae9 Make use of process.argv[0] instead of hardcoding "node" to windosu 2015-03-03 11:32:56 -04:00
Juan Cruz Viotti
6a83a537c7 Implement basic documentation generation mechanism 2015-03-03 11:32:24 -04:00
Juan Cruz Viotti
78d11bffd0 Document --quiet option for plugin install 2015-03-02 10:41:38 -04:00
Juan Cruz Viotti
572fe29fe6 Implement plugin update command 2015-03-02 10:41:08 -04:00
Juan Cruz Viotti
50ff40f6f3 Log warning if bundle not found 2015-03-02 09:03:11 -04:00
Juan Cruz Viotti
01d2edb819 Precompile CoffeeScript files 2015-02-26 11:47:34 -04:00
Juan Cruz Viotti
2085e71f33 Remove unecessary double quotes 2015-02-26 11:38:48 -04:00
Juan Cruz Viotti
980e55afd3 Simplify usage help string 2015-02-26 11:15:15 -04:00
Juan Cruz Viotti
d520918071 Multi arch builds 2015-02-26 10:12:25 -04:00
Juan Cruz Viotti
9c98adb712 Prevent writing accidentally to system drives 2015-02-25 11:12:58 -04:00
Juan Cruz Viotti
91a2453ebb Make use of new nplug version 2015-02-24 13:36:10 -04:00
Juan Cruz Viotti
bec264d936 Add trailing dash to plugin list prefix 2015-02-12 13:22:28 -04:00
Juan Cruz Viotti
2ea628bc4a Add plugins npm routines TODO 2015-02-12 13:17:20 -04:00
Juan Cruz Viotti
7edcf9925e Silence plugin install command 2015-02-12 13:16:21 -04:00
Juan Cruz Viotti
5e69995bb0 Refactor npm related logic to plugins 2015-02-12 13:10:45 -04:00
Juan Cruz Viotti
6c70f64f6a Log installed plugins 2015-02-12 12:54:59 -04:00
Juan Cruz Viotti
3445388db3 Implement plugin rm command 2015-02-12 12:50:40 -04:00
Juan Cruz Viotti
82ac558d7f Implement plugin install command 2015-02-12 12:23:01 -04:00
Juan Cruz Viotti
7dd34f4a0e Fix option parameter name issue 2015-02-12 10:20:00 -04:00
Juan Cruz Viotti
74b1092e9a Implement plugins command 2015-02-12 09:41:25 -04:00
Juan Cruz Viotti
94d462835c Remove hashbang from lib/resin.js 2015-02-11 15:34:37 -04:00
Juan Cruz Viotti
7c836132ad Add node version to version command output 2015-02-11 15:30:49 -04:00
Juan Cruz Viotti
9ce8193c1f Call application with bundled nodejs binary 2015-02-11 13:13:12 -04:00
Juan Cruz Viotti
d97a4d9d49 Use visuals.widgets.select for app create command 2015-02-11 10:07:53 -04:00
Juan Cruz Viotti
a6a3eeae6d Make use of resin.models.device.getSupportedDeviceTypes() asynchronously 2015-02-11 09:53:48 -04:00
Juan Cruz Viotti
65729012b6 Fix logs display 2015-02-10 15:43:39 -04:00
Juan Cruz Viotti
d3f91797bf Fix help command now that getMatchCommand() is async 2015-02-10 14:44:39 -04:00
Juan Cruz Viotti
eeee1ce8e1 Implement in place progress bar 2015-02-10 12:55:18 -04:00
Juan Cruz Viotti
6739b7fbca Make use of async in app.coffee 2015-02-10 11:55:30 -04:00
Juan Cruz Viotti
8d99526a96 Refactor plugins logic into a new file 2015-02-10 11:46:22 -04:00
Juan Cruz Viotti
f712064ab4 Move tests to tests/ and flatten errors/ module directory 2015-02-10 11:38:19 -04:00
Juan Cruz Viotti
65fbe12f22 Make use of new Capitano stdin support to get rid of helpers/ 2015-02-10 11:32:06 -04:00
Juan Cruz Viotti
8275275a05 Make login command accept options instead of colon separated credentials
For consistency
2015-02-09 11:48:13 -04:00
Juan Cruz Viotti
4d49655ab2 Enable registering programatically 2015-02-09 11:43:10 -04:00
Juan Cruz Viotti
2143818291 Remove unneeded dependency 2015-02-09 10:02:09 -04:00
Juan Cruz Viotti
d2f319c725 Move chop functionality to Resin CLI Visuals 2015-02-06 11:22:11 -04:00
Juan Cruz Viotti
e769fdc205 Prevent linter long line warning 2015-02-06 11:11:38 -04:00
Juan Cruz Viotti
ca961d04c5 Pass a ProgressState instance to bar.tick() directly 2015-02-06 08:21:32 -04:00
Juan Cruz Viotti
3005a91658 Write device init help page 2015-02-05 09:56:22 -04:00
Juan Cruz Viotti
8adf943e51 Make use of get-stdin 2015-02-05 09:10:10 -04:00
Juan Cruz Viotti
0dba133b0a Fix comment spacing 2015-02-05 08:56:52 -04:00
Juan Cruz Viotti
780893b411 Make os download modify options.output directly 2015-02-05 08:53:05 -04:00
Juan Cruz Viotti
bcbb7d8e96 Upgrade to Capitano v1.3.1 and remove unneeded try/catch clause
Capitano v1.3.1 introduces support for automatically catching action
sync thrown errors
2015-02-05 08:49:57 -04:00
Juan Cruz Viotti
e6081238a1 Implement new device init command 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
0a7b83308a Add TODO on actions/keys about extracting ssh key chop 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
33b66effc2 Make use of new Resin CLI visuals patterns 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
3ee228c862 Move os network params options to command-options 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
3f51739e2e Send outputFile to done() in os.download 2015-02-04 15:17:50 -04:00
Juan Cruz Viotti
9f4ae4ac3f Rename current device init to os download 2015-02-04 15:17:50 -04:00
Juan Cruz Viotti
a4a8c4e61a Simplify os download a bit with _.unary 2015-02-04 15:08:38 -04:00
Juan Cruz Viotti
e7823e2707 Make use of SDK ProgressState enhancement to simplify os download 2015-02-04 15:06:07 -04:00
Juan Cruz Viotti
531a48a158 Fix generateCacheName error not being caught 2015-02-03 13:51:33 -04:00
Juan Cruz Viotti
6ce0fdc4ab Make use of diskio 2015-02-02 12:25:22 -04:00
Juan Cruz Viotti
1a595412d5 Move unused diskpart script 2015-02-02 08:23:30 -04:00
Juan Cruz Viotti
fd079b5794 Make use of diskpart npm module 2015-01-30 15:41:14 -04:00
Juan Cruz Viotti
e9db8c09e8 Fix stdout argument issue 2015-01-30 14:19:36 -04:00
Juan Cruz Viotti
9e8e402788 Implement diskpart module 2015-01-30 14:16:24 -04:00
Juan Cruz Viotti
c7c7d55338 Allow to choose a device interactively from device init 2015-01-30 12:55:56 -04:00
Juan Cruz Viotti
654ab26609 Make use of drivelist 1.1.0 2015-01-30 11:48:15 -04:00
Juan Cruz Viotti
fc6dda5d22 Make use of published drivelist 2015-01-30 11:38:46 -04:00