Skip to content
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

Users can create Craft commands #6

marcuspoehls opened this issue Mar 1, 2019 · 0 comments

Users can create Craft commands #6

marcuspoehls opened this issue Mar 1, 2019 · 0 comments


Copy link

@marcuspoehls marcuspoehls commented Mar 1, 2019

The Craft CLI is extensible and can load commands from various locations. The idea of this feature is to let users create their own Craft commands.

Extend the console kernel to load user commands from the app/commands when invoking the Craft CLI in a Supercharge app.

Expected Result

  • load the Supercharge core commands
  • load custom user commands recursively from app/commands
  • user commands must extend the Command class
  • expose a base command as @supercharge/framework/command from the framework
  • throw an error if a command with an existing signature should be registered (don’t override)

The Craft CLI will override commands with the same signature without an error. The framework must ensure to not override an existing signature with another command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
No open projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant