Skip to content

Commit

Permalink
refactor(CLI): Do not filter commands by lifecycleEvents for help
Browse files Browse the repository at this point in the history
Not clear at this point why such filter was added.
It's harmful for commands configured externally of `Serverless` class
  • Loading branch information
medikoo committed Oct 20, 2021
1 parent 6022fb9 commit 6991d66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cli/render-help/general.js
Expand Up @@ -36,9 +36,7 @@ module.exports = (loadedPlugins) => {
renderOptions(globalOptions, { shouldWriteModernOnly: true });

const allCommands = new Map(
Array.from(commandsSchema).filter(
([commandName, { isHidden, lifecycleEvents }]) => commandName && !isHidden && lifecycleEvents
)
Array.from(commandsSchema).filter(([commandName, { isHidden }]) => commandName && !isHidden)
);
const mainCommands = new Map(
Array.from(allCommands).filter(([, { groupName }]) => groupName === 'main')
Expand Down

0 comments on commit 6991d66

Please sign in to comment.