Skip to content

Conversation

@pmuens
Copy link
Contributor

@pmuens pmuens commented Jul 1, 2016

Plugins can now have a provider definition inside the constructor.

If defined Serverless fill only consider the plugin if the provider definition of the service matches the one of the plugins.

All other plugins who have no provider definition will always be considered.

@pmuens pmuens added this to the v1.0.0-alpha.3 milestone Jul 1, 2016
@pmuens pmuens self-assigned this Jul 1, 2016
if (hooks.length === 0) {
const errorMessage = `The command you entered was not found.
Did you spell it correctly?`;
Did you spell it correctly?`;
Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Contributor Author

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!

@pmuens pmuens force-pushed the add-provider-awareness-for-plugins branch from a8f607d to dfa15aa Compare July 4, 2016 08:51
@eahefnawy eahefnawy merged commit 7e9566e into v1.0 Jul 4, 2016
@eahefnawy eahefnawy deleted the add-provider-awareness-for-plugins branch July 4, 2016 09:10
@pmuens pmuens modified the milestones: v1.0, v1.0.0-beta.1 Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants