Commit Graph

448 Commits

Author SHA1 Message Date
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
Juan Cruz Viotti
fd7d9858a9 Fix switch case 2015-01-30 10:37:23 -04:00
Juan Cruz Viotti
ac78a8bc02 Implement linux.list() 2015-01-30 10:30:28 -04:00
Juan Cruz Viotti
a220bc87ad Include USB Card reader in OSX test 2015-01-30 10:02:07 -04:00
Juan Cruz Viotti
0b1d83a70b Rename list spec stdout variable to drives 2015-01-30 09:59:28 -04:00
Juan Cruz Viotti
7beca02eda Mention drives command in device init help 2015-01-30 09:58:54 -04:00
Juan Cruz Viotti
80079d00a5 Implement win32.list() 2015-01-30 09:52:41 -04:00
Juan Cruz Viotti
1ce7178aa3 Test drive.osx.list() 2015-01-30 09:23:56 -04:00
Juan Cruz Viotti
ad0be5f63c Refactor drive module 2015-01-30 09:16:55 -04:00
Juan Cruz Viotti
fd1e632b50 List drives in OS X 2015-01-30 08:45:38 -04:00
Juan Cruz Viotti
d284e92520 Fix broken test 2015-01-29 15:28:33 -04:00
Juan Cruz Viotti
03c6c72df6 Integrate new progress bar 2015-01-29 14:59:57 -04:00
Juan Cruz Viotti
2d5549873a Prettier progress bar 2015-01-29 14:06:38 -04:00
Juan Cruz Viotti
35633f3612 Math.floor() percentage 2015-01-29 14:05:10 -04:00
Juan Cruz Viotti
2b992ec233 Simple progress bar approach 2015-01-29 14:01:21 -04:00
Juan Cruz Viotti
3e938f7808 Remove done message at the end of windosu execution 2015-01-29 12:29:35 -04:00
Juan Cruz Viotti
38139ed169 Simplify conditional 2015-01-29 12:27:37 -04:00
Juan Cruz Viotti
f767f637f7 Fix conditional 2015-01-29 12:23:30 -04:00
Juan Cruz Viotti
8437757ca8 Prevent infinite loop 2015-01-29 12:21:56 -04:00
Juan Cruz Viotti
9069b07d4a Integrate windosu 2015-01-29 12:04:48 -04:00
Juan Cruz Viotti
7949296cec Extend EACCESS, EPERM errors with OS specific descriptions 2015-01-29 10:39:12 -04:00
Juan Cruz Viotti
e9e02e3272 Handle ENOENT windows errors 2015-01-28 15:51:36 -04:00
Juan Cruz Viotti
00623833cc Extend errors.handle to catch EPERM as well 2015-01-28 15:45:30 -04:00
Juan Cruz Viotti
d75a19fc6e Remove debugging logging 2015-01-28 15:40:00 -04:00
Juan Cruz Viotti
0d06524162 Surround diskpart script in double quotes 2015-01-28 15:38:39 -04:00
Juan Cruz Viotti
95d8d2fe8f Add missing path dependency 2015-01-28 15:30:08 -04:00
Juan Cruz Viotti
9de4a3c556 Some fixes and refactoring 2015-01-28 15:26:56 -04:00
Juan Cruz Viotti
96d221fbcf Catch createWriteStream errors 2015-01-28 15:13:43 -04:00
Juan Cruz Viotti
8bfdebbfbb Fix drive dependencies 2015-01-28 14:53:34 -04:00
Juan Cruz Viotti
320981770e Erase MBR before rescanning 2015-01-28 14:51:11 -04:00
Juan Cruz Viotti
8b0ce36955 Use diskpart to rescan the drives 2015-01-28 14:41:53 -04:00
Juan Cruz Viotti
dcebbc0044 Make use of a 512 block aligner 2015-01-28 10:16:01 -04:00
Juan Cruz Viotti
db3d4292f4 Add Windows support to device init command 2015-01-28 08:33:50 -04:00
Juan Cruz Viotti
0e4245523b Fix errors/ test suite sudden failure issue 2015-01-23 14:58:57 -04:00
Juan Cruz Viotti
4103a4195a Move changeProjectDirectory outside the nested code 2015-01-23 13:54:30 -04:00
Juan Cruz Viotti
ff0b513188 Make use of nplugm.load 2015-01-23 13:24:57 -04:00
Juan Cruz Viotti
ff9558ab32 Simplify plugin loading routing with getPluginsByGlob() 2015-01-23 11:16:31 -04:00
Juan Cruz Viotti
af9ae6579c Move plugin module to nplugm 2015-01-23 10:23:47 -04:00
Juan Cruz Viotti
155a6775e4 Make use of device_type directly 2015-01-22 13:20:20 -04:00
Juan Cruz Viotti
a275de436d Make use of simplified table widget 2015-01-22 13:06:02 -04:00
Juan Cruz Viotti
092a246b3d Fix Windows path issues 2015-01-21 12:51:50 -04:00
Juan Cruz Viotti
50325d0f8f Make use of resin-cli-visuals and get rid of local ui module 2015-01-21 09:50:19 -04:00
Juan Cruz Viotti
2c90d1176c Reorder device init declaration to prevent help conflicts 2015-01-20 15:52:13 -04:00
Juan Cruz Viotti
9cb84ee612 Allow to quiet download progress bar 2015-01-20 15:41:14 -04:00
Juan Cruz Viotti
aa6680d57a Fix device init help OS X command 2015-01-20 15:36:01 -04:00
Juan Cruz Viotti
aa4d7a408a Implement device init command (for UNIX only) 2015-01-20 15:34:47 -04:00
Juan Cruz Viotti
f04f6f8702 Move ProgressBar to ui.widgets 2015-01-20 15:10:18 -04:00
Juan Cruz Viotti
da02857a6e Handle EACCES errors 2015-01-20 15:09:26 -04:00
Juan Cruz Viotti
af7a40bd68 Easy shortcut for one command plugins 2015-01-16 10:41:22 -03:00
Juan Cruz Viotti
a6660ad4ec Improve plugin architecture importing technique 2015-01-16 10:38:19 -03:00
Juan Cruz Viotti
d49677581b Make use of Capitano permissions feature 2015-01-16 09:34:59 -03:00
Juan Cruz Viotti
5abc4e550f Move command declarations next to their definitions 2015-01-15 14:18:39 -03:00
Juan Cruz Viotti
f94be29047 Remove unused error.handleCallback function 2015-01-15 11:39:18 -03:00
Juan Cruz Viotti
a6282d2b28 Get rid of log module
Didn't provide that much value
2015-01-15 11:36:43 -03:00
Juan Cruz Viotti
9a3b048b9f Move help facade to help actions module 2015-01-15 11:18:34 -03:00
Juan Cruz Viotti
72d08ffbbf Move version action to actions/ 2015-01-15 11:16:07 -03:00
Juan Cruz Viotti
c4da5f0008 Remove obsolete comment 2015-01-15 11:11:10 -03:00
Juan Cruz Viotti
3e055b32d2 Update Capitano to v1.2.0 and make use of done callback feature 2015-01-15 10:47:17 -03:00
Juan Cruz Viotti
2a8f1f1dc2 Implement plugin support 2015-01-14 15:42:05 -03:00
Juan Cruz Viotti
043a34cc7c Decouple permissions from http mocks and fixtures 2015-01-13 08:51:02 -03:00
Juan Cruz Viotti
975e133d5a Refactor to not use ConnectionParams 2015-01-12 09:12:30 -03:00
Juan Cruz Viotti
243a05a4e2 Prevent note callback from being called twice 2015-01-09 15:07:50 -03:00
Juan Cruz Viotti
5a3254dc5e Get rid of cache module 2015-01-09 13:41:32 -03:00
Juan Cruz Viotti
2b5c1a664e Remove unused isDeviceUUIDValid helper function 2015-01-09 13:28:27 -03:00