Commit Graph

1239 Commits

Author SHA1 Message Date
Juan Cruz Viotti
c4bb275923 Implement key list command 2014-11-20 13:03:23 -04:00
Juan Cruz Viotti
a189e21c30 Restart URL TODO 2014-11-20 12:54:43 -04:00
Juan Cruz Viotti
322fed866d Test that server can handle a relative as well as an absolute url 2014-11-20 12:33:07 -04:00
Juan Cruz Viotti
574d612624 Implement app restart command 2014-11-20 12:24:39 -04:00
Juan Cruz Viotti
e1a63fb548 Implement version module 2014-11-20 12:13:59 -04:00
Juan Cruz Viotti
ee0fc8206f Make use of yargs.showHelp() instead of yargs.help(), as the latter uses
stderr by default
2014-11-20 12:11:01 -04:00
Juan Cruz Viotti
d6c8d77ceb Update areFunctionsEqual comment 2014-11-20 12:07:03 -04:00
Juan Cruz Viotti
91567cb5c7 Make run() print help if no matches 2014-11-20 12:05:50 -04:00
Juan Cruz Viotti
14459e1d09 Re enable all commands with new Yargs Command plugin 2014-11-20 11:57:53 -04:00
Juan Cruz Viotti
7610fe87cc Implement Yargs Command plugin 2014-11-20 11:50:58 -04:00
Juan Cruz Viotti
f1a76db5f5 Show Is Online information in devices command 2014-11-19 15:18:15 -04:00
Juan Cruz Viotti
3f1bcf3f02 Improve devices table ordering 2014-11-19 15:01:27 -04:00
Juan Cruz Viotti
be01094463 Fix ID -> Id ordering bug 2014-11-19 14:57:30 -04:00
Juan Cruz Viotti
34346dd3d0 Refactor table utilities into tableHelpers 2014-11-19 14:25:09 -04:00
Juan Cruz Viotti
55fa8435bb Implement devices command 2014-11-19 13:38:15 -04:00
Juan Cruz Viotti
e0032c090f Catch errors from applicationModel.getAll() 2014-11-19 12:15:39 -04:00
Juan Cruz Viotti
7dc5915db5 Remove unused dependencies 2014-11-19 12:14:34 -04:00
Juan Cruz Viotti
9130281862 Extend table module to handle formatting 2014-11-19 12:12:08 -04:00
Juan Cruz Viotti
e0448357df Implement table.horizontal() 2014-11-19 10:42:18 -04:00
Juan Cruz Viotti
26c69d183d Make sure table.prepareObject() doesn't removes non empty arrays 2014-11-19 10:29:59 -04:00
Juan Cruz Viotti
e390efd46e Implement table module 2014-11-19 10:20:36 -04:00
Juan Cruz Viotti
77d84103f6 Implement app info action 2014-11-19 09:23:40 -04:00
Juan Cruz Viotti
3015af3aeb Fix hook arguments issue 2014-11-19 09:14:40 -04:00
Juan Cruz Viotti
98f4dc8e19 Require login before opening preferences 2014-11-19 09:05:26 -04:00
Juan Cruz Viotti
47a1e16dab Implement preferences module 2014-11-19 08:59:17 -04:00
Juan Cruz Viotti
76194c7d46 Use getDisplayName() in apps action 2014-11-19 08:51:42 -04:00
Juan Cruz Viotti
d77e671648 Return unknown if no matches in device.getDisplayName() 2014-11-19 08:50:11 -04:00
Juan Cruz Viotti
f0e1effc05 Implement device module with getDisplayName() 2014-11-19 08:45:56 -04:00
Juan Cruz Viotti
89ec171a3d Improve apps printing with cliff 2014-11-18 14:51:05 -04:00
Juan Cruz Viotti
8777bb9536 Make use of authHooks in actions 2014-11-18 12:37:01 -04:00
Juan Cruz Viotti
8bdd3b697a Implement authHooks module 2014-11-18 12:36:43 -04:00
Juan Cruz Viotti
a0c743d771 Implement messages module 2014-11-18 12:36:33 -04:00
Juan Cruz Viotti
5109bba302 Move TODO to a better place 2014-11-18 12:20:37 -04:00
Juan Cruz Viotti
24f50fa5ec Add optional interactivity to login command 2014-11-18 12:15:40 -04:00
Juan Cruz Viotti
275eed82f0 Implement widgets module 2014-11-18 12:14:48 -04:00
Juan Cruz Viotti
53c25412c3 Make auth.parseCredentials async 2014-11-18 12:11:20 -04:00
Juan Cruz Viotti
d671832b5a Implement logout command 2014-11-18 11:48:05 -04:00
Juan Cruz Viotti
c41b28d4f0 Organise action requires close to their use in app.coffee 2014-11-18 11:40:12 -04:00
Juan Cruz Viotti
5c53829812 Implement signup command 2014-11-18 11:37:29 -04:00
Juan Cruz Viotti
612bb5e605 Basic test suite for Canvas 2014-11-18 11:15:47 -04:00
Juan Cruz Viotti
719c8d199d Remove server facade duplication 2014-11-18 10:33:24 -04:00
Juan Cruz Viotti
eee13418b9 Delete obsolete comment 2014-11-18 10:13:58 -04:00
Juan Cruz Viotti
6afdd0e48a Make use of new ApplicationModel in apps list action 2014-11-18 10:12:35 -04:00
Juan Cruz Viotti
e4b0f3772b Implement ApplicationModel's getAll function 2014-11-18 10:11:18 -04:00
Juan Cruz Viotti
e18bc83285 Integrat resin-platform-api 2014-11-18 10:11:07 -04:00
Juan Cruz Viotti
6da7290d73 Use gzip by default in server 2014-11-18 10:05:38 -04:00
Juan Cruz Viotti
e6570efbaf Simplify header assignment in server.request 2014-11-18 10:04:26 -04:00
Juan Cruz Viotti
7524a0efa8 Option based server.request() 2014-11-18 09:59:19 -04:00
Juan Cruz Viotti
9e0940063e Use built-in url module instead of url-join 2014-11-18 09:19:20 -04:00
Juan Cruz Viotti
2fd2b702ae Rename config.baseUrl to config.remoteUrl 2014-11-18 08:53:07 -04:00
Juan Cruz Viotti
d0cc3e54ad Create actions submodule to clean app a bit 2014-11-18 08:41:13 -04:00
Juan Cruz Viotti
2b8313da74 Rename interface as simply app.coffee 2014-11-18 08:35:50 -04:00
Juan Cruz Viotti
c753e1b41b Move auth outside of cli-modules 2014-11-18 08:34:40 -04:00
Juan Cruz Viotti
69dbd49444 Implement simple interface module 2014-11-17 15:48:26 -04:00
Juan Cruz Viotti
8df43575d0 Correctly reference home directory 2014-11-17 15:40:16 -04:00
Juan Cruz Viotti
3c3cb3e850 Create prefix directory when using data.prefix.set 2014-11-17 15:32:35 -04:00
Juan Cruz Viotti
11998a63cd Make data.prefix.set() async 2014-11-17 15:20:19 -04:00
Juan Cruz Viotti
5eeb4e04ee Remove unneeded logErrorOrContinue 2014-11-17 15:13:31 -04:00
Juan Cruz Viotti
fa47ad1201 Implement handy logErrorOrContinue 2014-11-17 14:55:36 -04:00
Juan Cruz Viotti
798a3ded61 Improve parseCredentials error message 2014-11-17 14:54:20 -04:00
Juan Cruz Viotti
b0fe4f41c1 Implement auth.parseCredentials() 2014-11-17 14:40:32 -04:00
Juan Cruz Viotti
d9bfe96cb5 Pass null as first argument for consistency 2014-11-14 15:50:29 -04:00
Juan Cruz Viotti
93b3f90e92 Remove done TODO 2014-11-14 15:49:35 -04:00
Juan Cruz Viotti
58cc0be0c9 Cleanup tests 2014-11-14 15:48:37 -04:00
Juan Cruz Viotti
8143fa3ab3 Update tests that assume saveToken returned the token as the second
parameter
2014-11-14 15:37:55 -04:00
Juan Cruz Viotti
b0dde8104f Pass undefined directly on data.get when key doesn't exists
To prevent confusing async
2014-11-14 15:26:25 -04:00
Juan Cruz Viotti
a4a9ebf0bb Fix undefined callback issue 2014-11-14 15:18:08 -04:00
Juan Cruz Viotti
48d39a39f8 Reorder server unit test to get more meaningful results 2014-11-14 15:04:47 -04:00
Juan Cruz Viotti
15620145eb Make data module return undefined if key is not found 2014-11-14 14:56:52 -04:00
Juan Cruz Viotti
14bacbc4a4 Make token fs based 2014-11-14 14:28:58 -04:00
Juan Cruz Viotti
e288d3e85f Implement data.has() 2014-11-14 13:34:04 -04:00
Juan Cruz Viotti
d83e269f20 Implement data.remove() 2014-11-14 13:21:56 -04:00
Juan Cruz Viotti
86b3489a48 Implement fsUtils.isDirectory() helper 2014-11-14 12:58:05 -04:00
Juan Cruz Viotti
aef90a18e8 Use staging instead of alpha for now 2014-11-14 11:54:03 -04:00
Juan Cruz Viotti
b47adaefa4 Make sure server response body is parsed 2014-11-14 11:53:46 -04:00
Juan Cruz Viotti
97d778634d Implement Authorization header support in server module 2014-11-14 11:05:30 -04:00
Juan Cruz Viotti
58300acb77 Implement Auth module 2014-11-14 09:51:59 -04:00
Juan Cruz Viotti
5d6d2f0511 Convert Token module into callback based 2014-11-07 14:51:54 -04:00
Juan Cruz Viotti
3f5da39990 Add TODO for fsUtils.isValidPath() 2014-11-07 14:17:37 -04:00
Juan Cruz Viotti
cad1d5764b Remove unused fsUtils.isFile() 2014-11-07 14:17:05 -04:00
Juan Cruz Viotti
f00691529a Implement Data module 2014-11-07 14:15:59 -04:00
Juan Cruz Viotti
453d1bbd7b Add colon after each module spec title 2014-11-07 12:43:10 -04:00
Juan Cruz Viotti
64e66e229f Implement DataPrefix module 2014-11-07 12:42:02 -04:00
Juan Cruz Viotti
afe438ff82 Don't not send an error on isFile, even when the file doesn't exists 2014-11-07 12:10:18 -04:00
Juan Cruz Viotti
89bb0d0b21 Implement fsUtils module 2014-11-07 11:21:48 -04:00
Juan Cruz Viotti
41d73eaf98 Implement precarious token persistence mechanism 2014-10-31 15:19:16 -04:00
Juan Cruz Viotti
463ed6473b Implement basic Auth module that fetches a token 2014-10-31 14:47:18 -04:00
Juan Cruz Viotti
b52d1ccb6d Throw error if serve response status code is higher or equal than 400 2014-10-31 13:25:02 -04:00
Juan Cruz Viotti
62fc40cd4b Implement Server module 2014-10-31 11:59:23 -04:00