Shane Handley
c49ebdfffc
Update serverless config file lookup in pluginmanager to use the serverless config default value always.
2018-10-13 19:25:04 +09:00
Shane Handley
1726daef2e
Merge branch 'master' into 2116-consistent-errors-missing-config
2018-10-12 15:02:19 +09:00
Shane Handley
7b664e949f
Update the way that the configDependent property is checked, switch some lookups to getServerlessConfig to use the service path from sls.config rather than assume process.cwd()
2018-09-30 15:40:21 +09:00
Erik Erikson
553e6cf0da
Provide Consistent Service Path
...
Fix #5242
Do this by first supplying the `servicePath` in `~/lib/plugins/lib/validate.js` and `~/lib/plugins/print.js` in a consistent manner with the code in `~/lib/classes/PluginManager.js`. Then, provide a default of `process.cwd()` for `servicePath` in `getCacheFilePath` and `getServerlessConfigFile`.
2018-09-19 17:03:29 -07:00
Shane Handley
efe3d1c73b
Linting
2018-09-16 04:24:52 +10:00
Shane Handley
9a3ba1f717
Removed accidental formatting, again :(.
2018-09-16 03:17:52 +10:00
Shane Handley
7837a062fa
Removed accidental formatting, again :(.
2018-09-16 03:16:14 +10:00
Shane Handley
10ac3fa950
Removed accidental formatting.
2018-09-16 03:13:31 +10:00
Shane Handley
515fd8c6ab
Updated config to require serverless config for selecte plugins.
2018-09-16 03:04:50 +10:00
Shane Handley
860fd938a0
Test coverage of the flag to check for serverless config befre executing a command which requires a config to exist.
2018-09-15 14:32:34 +10:00
Shane Handley
d81ad1b913
Initial conversion to validation within the PluginManager, rather than a per-plugin invocation of the validation.
2018-09-10 21:41:39 +10:00
GuruRAM
b9c7260881
#4839 pluginInstance.provider check type fixed.
2018-04-23 00:51:04 +03:00
GuruRAM
00b2024f76
#4839 reimplemented yamlAstParser addNewArrayItem and removeExistingArrayItem methods.
...
Extended install.test.js, uninstall.test.js unit tests to cover complex plugins object.
2018-04-15 23:01:11 +03:00
GuruRAM
0081afd78c
#4839 use lodash check functions (isString, isArray, isObject) instead of native ones.
2018-04-09 21:43:28 +03:00
GuruRAM
1c180c850a
#4839 Configurable local plugins folder feature.
2018-04-08 23:28:52 +03:00
horike37
4a3e140dc2
update code to synchronous
2017-12-19 01:10:43 +09:00
horike37
fbce5ed4ae
add suggestion feature
2017-12-17 15:13:20 +09:00
horike37
0cf7c9a329
first commit
2017-12-16 20:27:33 +09:00
horike37
355bfa01c0
fix the plugin commands bug
2017-12-12 05:05:00 +09:00
Mariusz Nowak
7689cff5a9
Improve plugin initialization error reporting
...
Distinguish not found errors from "initialization errors (so far in both cases not found error was thrown)
2017-09-29 16:25:29 +02:00
Doug Moscrop
778f510c35
fix #4272 use instanceof to detect duplicate plugins and log a warning
2017-09-18 14:49:57 -04:00
Frank Schmid
07becabf6c
Added alias commands and unit tests.
2017-09-06 17:36:17 +02:00
Frank Schmid
1303702388
Allow deploy command with function argument
...
* Added function option documentation
* Added unit test for lifecycle termination
* Extended before:deploy:deploy unit tests
* Added debug logging for command invokes/spawns and terminations.
* Deploy with a function parameter starts deploy:function and terminates the deploy lifecycle.
* Spawn allows to exit the current lifecycle and continue with the parent
2017-09-01 15:30:37 +02:00
Frank Schmid
bb1e74a43c
Rethrow original plugin error in debug mode. Added unit tests.
2017-08-15 11:38:37 +02:00
Sebastien Bramille
6d2eb61166
Align with Plugin
2017-07-30 02:16:21 +01:00
Sebastien Bramille
5174bf98ec
Improve deprecated hook message
2017-07-30 02:12:15 +01:00
Philipp Muens
e07f48f80b
Merge pull request #3960 from RafalWilinski/master
...
Load Serverless plugins only once
2017-07-21 11:16:23 +02:00
Philipp Muens
9c856dc7b6
Minor code refactorings
2017-07-21 11:09:05 +02:00
Philipp Muens
99a12414e1
Merge pull request #3959 from RafalWilinski/3956-catch-unknown-plugin
...
Wrap addPlugin in try/catch statement when loading plugins
2017-07-21 10:58:44 +02:00
Philipp Muens
d04889b4aa
Minor refactorings
2017-07-21 10:41:30 +02:00
Rafal Wilinski
32bf998406
Prepend messages with correct prefixes
2017-07-20 11:26:20 +02:00
Rafal Wilinski
787341d5bf
Conditionally throw error or log a warning
2017-07-20 10:47:42 +02:00
Rafal Wilinski
675233ffc0
Change log to throwing an Error
2017-07-20 10:08:55 +02:00
Rafal Wilinski
550f9d9d97
Replace Array.includes with _.includes
2017-07-20 07:30:17 +02:00
Rafal Wilinski
007c5c9607
Add duplicate check in PluginManager.addPlugin function
2017-07-20 07:13:28 +02:00
Rafal Wilinski
157e8b88dc
Wrap this.addPlugin function into try/catch statement and log a warning
2017-07-20 06:16:01 +02:00
Eslam λ Hefnawy
de6bebeea9
Merge pull request #3808 from rpunkfu/specify-default-option-values
...
Allow to provide a default value for plugin options
2017-07-19 19:25:03 +07:00
Oskar Cieslik
d9dcd73e5d
Allow to provide a default value for plugin options
2017-06-19 21:10:53 +02:00
Nik Graf
4514bb01c3
remove legacy imports
2017-06-19 12:21:54 +02:00
Nik Graf
c5537c2343
Merge branch 'master' into services
2017-06-19 11:26:46 +02:00
Philipp Muens
2a9636a18c
Fix updateAutocompleteCacheFile() bug caused by empty commands object
2017-06-12 09:08:27 +02:00
Philipp Muens
39f0ad94a5
Merge pull request #3746 from HyperBrain/filter-nested-entrypoints-for-help
...
Filter nested entrypoints on getCommands(). Used by help.
2017-06-11 20:59:45 +02:00
Brian Neisler
851df3921a
Make autocomplete async through promises
2017-06-07 18:40:05 -07:00
davidwells
75a97441a1
run autocomplete.json creation in async fashion
2017-06-07 15:15:11 -07:00
davidwells
75af2ae3dd
silently fail on FS error
2017-06-07 13:48:47 -07:00
Eslam A. Hefnawy
5696513789
added cache file validation by hash to autocomplete
2017-06-08 01:27:11 +07:00
Frank Schmid
b73466641e
Filter nested entrypoints on getCommands(). Used by help.
2017-06-07 17:24:37 +02:00
Eslam A. Hefnawy
e2cc1451a5
resolved comments on autocomplete
2017-06-07 22:02:23 +07:00
Eslam A. Hefnawy
67dc1c2463
using cache file for autocomplete
2017-06-07 22:01:15 +07:00
Brian Neisler
a537e58424
Remove serverless-alpha plugin autoloading.
2017-06-01 14:53:55 -07:00