1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add --format json to search command (#9747)

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
This commit is contained in:
ochorocho 2021-03-09 23:06:02 +01:00 committed by GitHub
parent 8f315551d4
commit 35210d99a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -359,6 +359,11 @@ You can also search for more than one term by passing multiple arguments.
* **--only-name (-N):** Search only in name.
* **--type (-t):** Search for a specific package type.
* **--format (-f):** Lets you pick between text (default) or json output format.
Note that in the json, only the name and description keys are guaranteed to be
present. The rest (`url`, `repository`, `downloads` and `favers`) are available
for Packagist.org search results and other repositories may return more or less
data.
## show