-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
New plugin
commands
#63
Conversation
afbora
commented
Feb 23, 2024
•
edited
Loading
edited
7af5a45
to
8aea2ae
Compare
92fc7a1
to
ba79540
Compare
ba79540
to
cc6aa41
Compare
I wonder if we should use the existing main groups instead of plugin:
Especially since there already is make:plugin. We broke this for the uuid commands. But maybe we could change that in the future. I think we really just need to commit to one standard. @distantnative @lukasbestle what are your thoughts on this? |
I agree it would be good to be consistent. I don't have a strong preference about the order. Namespacing by type (like |
|
I agree that the plugin namespace is a bit of an extra case here. I think there will be a lot of additional useful commands for plugins. Maybe in this case we could think about adding aliases for install, remove and upgrade? On the other hand, aliases could also create even more confusion. Let's maybe keep the plugin namespace as default for now. We can still add aliases later if needed. |
Great! Do you want to me change command names? |
28d4d1d
to
a5e4991
Compare
a5e4991
to
eafcb5b
Compare
@bastianallgeier Ready to review and need your last touches 🙂 |
I made a first few small changes and had a few thoughts: plugin:installI think we need to check for the plugin type in the composer json. So far I can basically install any Github repo and it does not really need to be a proper Kirby plugin. I think it would be good to use this as a sanity check. plugin:removeIf a plugin does not have an index.php and does not call Kirby::plugin(), it cannot be removed. |
@bastianallgeier If anonymous plugin installed (for ex: |
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.
I'm happy with the current version. We can always make changes later if needed.