157 Commits

Author SHA1 Message Date
Doug Moscrop
4dbd94e465 fix resources as an array to support variables 2017-05-16 15:41:00 -04:00
Eslam A. Hefnawy
7cadf28444 supported promises in the variable system 2017-05-02 23:54:09 +07:00
Philipp Muens
59c8c41057 Update local lookup to use service directory 2017-03-29 21:31:52 +02:00
Philipp Muens
4ee198c62c Add serverless-alpha autoloading 2017-03-16 13:06:14 +01:00
Danny Cohn
7bbf9ce6d0 fix #2997 2017-02-05 00:11:20 -06:00
Andrey Tserkus
ffd6152de0 cover Error with tests; rename SError export to ServerlessError 2017-01-31 01:50:07 -08:00
Fabien Ruffin
73ef6587aa Refactored service validation to happen after variable population 2016-10-23 13:57:10 +11:00
Philipp Muens
a60a9b575b Remove provider storage on PluginManager level 2016-10-19 08:32:06 +02:00
Philipp Muens
df7692ac80 Introduce AwsProvider plugin 2016-10-19 08:32:06 +02:00
Philipp Muens
c34775461c Split logStat into two functions and wrap it into Promise 2016-10-12 18:25:55 -07:00
Philipp Muens
52318d4c3c Refactor so that only one stats file is used 2016-10-12 18:25:55 -07:00
Philipp Muens
b443b2cf9d Add SlStats functionality 2016-10-12 18:25:55 -07:00
Doug Moscrop
0c452a6af8 fix Verify that a command is valid before trying to populate variables 2016-09-28 11:34:50 -04:00
Doug Moscrop
d50531b4dc fix #2041 variable population fails for help commands 2016-09-28 11:34:50 -04:00
Doug Moscrop
19f5bfb27f refactor PluginManager and CLI to better support command nesting 2016-09-28 11:34:50 -04:00
Eslam A. Hefnawy
9ed7a2a766 overwrite functionality working 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
5dafeee388 basic new variable system 2016-08-31 16:37:58 +09:00
Philipp Muens
8d12c29ad8 Merge pull request #1624 from serverless/fix-command-tracking-not-working-bug
Fix command tracking not working bug
2016-07-25 09:58:15 +02:00
Philipp Muens
3290ced8ee Remove hard service runtime dependency 2016-07-22 17:19:08 +02:00
Eslam A. Hefnawy
94fa416059 provider property can now be an object 2016-07-21 19:14:48 +09:00
Philipp Muens
49e1cf6099 Move tracking of usage before run command
This is necessary so that we can return the Promise from the PluginManagers run method
(like it was done before the recent change).
2016-07-20 14:03:51 +02:00
Philipp Muens
920437ee63 Fix command tracking not working bug 2016-07-20 12:53:18 +02:00
Philipp Muens
3d2039210c Update tracking implementation to use one plain HTTP call
This speeds up tracking speed dramatically. However it's still not that
super smooth and might suffer when the user has a bad internet connection.
2016-07-15 18:22:03 +02:00
Philipp Muens
fe3cc6f35d Add basic tracking functionality 2016-07-15 18:22:03 +02:00
Arnaud Rebts
7dd58f0325 Implement service plugin loading
Resolves #1442
2016-07-12 11:16:27 +02:00
Philipp Muens
7ccdc82e09 Add provider awareness for plugins 2016-07-04 09:51:38 +01:00
Philipp Muens
267e6c58fb Add shortcut support for options 2016-06-29 14:07:55 +02:00
Eslam A. Hefnawy
d7c50f3626 greeting is now generated on help only 2016-06-24 15:42:52 +02:00
Eslam A. Hefnawy
fdddd2e83c added noGreeting option for invoke integration test to run 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
d2dc0ba58e ZERO linting issues and test coverage of 93% 🎉 🎉 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
c16985a0d9 better ux for error handling 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
ff0ed5a200 variable population now is aware of default stage and region 2016-06-20 18:36:55 +02:00
Eslam A. Hefnawy
4d9e236b7e added global rejection handler 2016-06-09 19:43:13 +02:00
Philipp Muens
c2fc2adead Refactor help displaying in CLI
Extract the help displaying from processInput to an own method.
2016-06-09 19:43:13 +02:00
Philipp Muens
40f6dab03f Move options passing to the plugins constructor 2016-06-09 19:43:13 +02:00
Philipp Muens
85c603dbb0 Refactor CLI class usage
So that the loaded plugins are not passed into the constructor. This is a preparation
for the upcoming task to move the options to the plugins constructor rather than the hook
which is run.
2016-06-09 19:39:57 +02:00
Philipp Muens
39d30b3ca0 Add automatic servicePath detection functionality
The service directory will be automatically detected if the users CWD is a valid
Serverless service directory.
2016-05-26 14:34:56 +02:00
Philipp Muens
e5a5033db7 Add basic CLI help functionality 2016-05-24 14:58:19 +02:00
Eslam A. Hefnawy
de86121170 refactor: removed instances keyword and replaces this.S to this.serverless 2016-05-24 11:33:36 +02:00
Eslam A. Hefnawy
d3d4c0ae53 merging dev into create 2016-05-23 21:49:19 +02:00
Philipp Muens
2bfc79e0e8 Rename arguments / args to options 2016-05-23 17:02:52 +02:00
Philipp Muens
c8639c678a Add argument support for CLI and plugins
Add the possibility to access arguments inside plugins (e.g. "--function function1" or "-f function").
Additionally the "lifeCycleEvent" property is renamed to "lifecycleEvent".
2016-05-23 15:17:22 +02:00
Eslam A. Hefnawy
21daae8318 added create plugin 2016-05-23 00:30:56 +02:00
Philipp Muens
30ee6d1592 Add basic CLI integration
Additionally unit and integration tests for the CLI are added.
2016-05-20 16:28:17 +02:00
Eslam A. Hefnawy
9665c54e0d cleaned the codebase and fixed tons of linting issues 2016-05-20 13:33:54 +02:00
Eslam A. Hefnawy
5f85c4f45b some cleanup 2016-05-18 16:01:05 +02:00
Eslam A. Hefnawy
c7054784a2 basic service and config working 2016-05-17 17:53:27 +02:00
Eslam A. Hefnawy
0338119a46 further cleaning of new plugin system 2016-05-17 08:43:55 +02:00
Eslam A. Hefnawy
8f6364b250 basic new plugin system 2016-05-17 08:43:55 +02:00
Eslam A. Hefnawy
0025427d1a basic refactoring of the plugin class 2016-05-11 12:57:41 +07:00