User tests: Successful: Unsuccessful:
i added a CLI task to discover extensions. I took #28666 as an example
Apply this PR
Copy or symlink an extension to your Joomla installation
Run php ./cli/joomla.php extension:discover --eid=122
php ./cli/joomla.php extension:discoverinstall --eid=122
for discovering the extension with the ID 122
or
Run the command without a parameter (like this php ./cli/joomla.php extension:discover
php ./cli/joomla.php extension:discoverinstall
) for discovering all extensions, that are copied to Joomla but not installed.
Run php ./cli/joomla.php list
or only php ./cli/joomla.php
and check the entry in the list.
Run php ./cli/joomla.php help extension:discover
php ./cli/joomla.php help extension:discoverinstall
to check the help information.
I would add it here: https://docs.joomla.org/J4.x:CLI_Update
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
@laoneo @richard67 Thank you. I fixed the copy and pasted mistakes.
@astridx Thanks. It might be that system tests are failing in drone for your PR, but this is very likely unrelated. But if you want to have it nice, you can update your branch to latest 4.0-dev of the CMS, then the system tests will pass and all will be green, which looks nicer ;-)
Now it is nice and green :)
I have tested this item
Tested successfully in Beta6-dev of 29 November
Does this find the extensions or does it install them?
@brianteeman is right - can we name this to discover install - because we should add a separate discover task which covers the 'refresh' task in github https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_installer/controllers/discover.php#L26-L33
I have tested this item
Tested successfully in Beta6-dev and PHP 8.0.
Copied the following free 3rd party extensions to modules and the PR detected and installed them:
Mini Frontpage from https://extensions.joomla.org/extension/news-display/articles-display/mini-frontpage/
Rapid Contact from https://extensions.joomla.org/extension/contacts-and-feedback/contact-forms/rapid-contact/
@brianteeman is right - can we name this to discover install - because we should add a separate discover task which covers the 'refresh' task in github https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_installer/controllers/discover.php#L26-L33
@wilsonge I don't understand what you mean with this.
I guess he means to rename the class to ExtensionDiscoverInstallCommand.
Renamed the classes, can be tested now.
Joomla 4.0 is in feature freeze can you please rebase this on j4.1 or I can do this for you, thanks
This is not a feature, it is an enhancement. And I need it for testing extensions in j4. So no way to rebase to 4.1.
And I need joomla 4 ready to ship
And postponing this to 4.1 will help?
Ok, I give up. Do whatever you want with it. I'm building it on my own
I have tested this item
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-18 09:33:51 |
Closed_By | ⇒ | HLeithner |
thanks and sorry
@astridx Could you check and fix PHP code style errors reported by drone here https://ci.joomla.org/joomla/joomla-cms/37913/1/6? Thanks in advance