-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add provider awareness for plugins #1465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/classes/PluginManager.js
Outdated
| if (hooks.length === 0) { | ||
| const errorMessage = `The command you entered was not found. | ||
| Did you spell it correctly?`; | ||
| Did you spell it correctly?`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah we gotta be careful with string template literals ... every space/return we make will affect how the error is displayed in the terminal. For best guaranteed quality i prefer the ['error line1, 'error line2'].join(''); pattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you confirm that this message is printed correctly? otherwise could you switch to the convention I shared above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woop woop. Good catch! Sorry that was just a "this should be indented correctly" move.
Will update it!
a8f607d to
dfa15aa
Compare
Plugins can now have a
providerdefinition inside the constructor.If defined Serverless fill only consider the plugin if the
providerdefinition of the service matches the one of the plugins.All other plugins who have no provider definition will always be considered.