? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
9 Jan 2021

A decision is needed asap - as a release blocker - because if this is not merged before Joomla 4.0.0 is released, then its a b/c change and will not be worth doing in the future when Joomla 4.1 is released.

Summary of Changes

prefix all Joomla internal commands with joomla: to correctly namespace them from other commands.

Out of the box this doesn't seem to make much sense, however as the community add more and more commands, the name spacing and naming convention of commands can, and will, get messy. This has already played out in other projects with commands.

Testing Instructions

php cli/joomla.php list

note that database:import/export is not covered by this PR as that is a library of its own.

Actual result BEFORE applying this Pull Request

Screenshot 2021-01-09 at 13 06 35

Expected result AFTER applying this Pull Request

Screenshot 2021-01-09 at 13 06 49

And after installing extensions with other commands you can see why this is much neater and makes sense to do:

Screenshot 2021-01-09 at 13 11 33

Documentation Changes Required

avatar PhilETaylor PhilETaylor - open - 9 Jan 2021
avatar PhilETaylor PhilETaylor - change - 9 Jan 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jan 2021
Category Libraries
avatar PhilETaylor
PhilETaylor - comment - 9 Jan 2021

@wilsonge one for you to approve or reject before going to RC please.

avatar wilsonge
wilsonge - comment - 10 Jan 2021

Hmm I kinda get the aim of this. But at minimum the users and finder things are their own extensions so should be as top level as any other 3rd party extension.

Honestly I'm unsure on grouping session/site/extension commands together. I'm going to talk around the maintainers group for opinions.

avatar ceford
ceford - comment - 10 Jan 2021

I have tested this item successfully on e84dcd8

It works as described. Whether it is the right thing to do is up to others.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31941.

avatar ceford ceford - test_item - 10 Jan 2021 - Tested successfully
avatar alikon
alikon - comment - 10 Jan 2021

i don't like it
too much verbose
my 0.02€

avatar PhilETaylor
PhilETaylor - comment - 10 Jan 2021

@alikon you do know you don't have to type the full command name right?

Symfony commands allow shorthand - the shortest string that is unique in each part between colons

Example:
php joomla.php j:c:c

avatar gostn
gostn - comment - 11 Jan 2021

I have tested this item successfully on e84dcd8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31941.

avatar gostn gostn - test_item - 11 Jan 2021 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 11 Jan 2021

Symfony commands allow shorthand - the shortest string that is unique in each part between colons

However, as has been highlighted to me privately, Joomla doesn't fully implement Symfony commands and so this kind of shortcut doesn't work with the Joomla cli :-(

avatar wilsonge
wilsonge - comment - 11 Jan 2021

The CLI App interface isn't compatible with Joomla's (the default parameter in the CMSApplication->get() method so we adapted most of it)

avatar brianteeman
brianteeman - comment - 18 Jan 2021

As long as all add-ons namespace their commands (as akeeba has done) I'm not sure I see where the problem lies

avatar laoneo
laoneo - comment - 28 Jan 2021

Sooner or later it will clash, so better to namespace them yet.

avatar himanshu007-creator himanshu007-creator - test_item - 24 Feb 2021 - Tested successfully
avatar himanshu007-creator
himanshu007-creator - comment - 24 Feb 2021

I have tested this item successfully on e84dcd8

After applying the patch. It works as mentioned.
A small correction, in the testing instructions, please change the command php clli/joomla.php list to php cli/joomla.php list


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31941.

avatar laoneo laoneo - test_item - 25 Feb 2021 - Tested successfully
avatar laoneo
laoneo - comment - 25 Feb 2021

I have tested this item successfully on e84dcd8

Run a couple of commands like php cli/joomla.php joomla:session:gc. All of them worked without an issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31941.

avatar wilsonge
wilsonge - comment - 25 Feb 2021

Ok I've talked in maintainers a little bit. I'm going to close this - I think we've roughly got the right breakdown already - where these are roughly broken down by our internal component names. We can probably group some things together like maybe update and core or similar but I think everything under one name is way too far.

avatar wilsonge wilsonge - change - 25 Feb 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-02-25 14:13:44
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 25 Feb 2021
avatar PhilETaylor
PhilETaylor - comment - 25 Feb 2021

That, of course, is your decision as maintainers...

avatar PhilETaylor PhilETaylor - change - 25 Feb 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 25 Feb 2021

Add a Comment

Login with GitHub to post a comment