233 Commits (7888d3fb97abb4f7e161a9b2578c4b10fe866108)

Author SHA1 Message Date
Jordi Boggiano e67030076a Fix show command 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Gabriel Caruso 2a13bb2649 Fixes from PHPStan (#7687)
* fix docblocks

* remove redundant conditional

* fix wrong variable name

* fix wrong namespaces

* add missing private members

* remove unused/redundant arguments

* move testcase class

* exclude TestCase.php

* Tweak RuleWatchGraph type hints

* Tweak doc comment
6 years ago
Jordi Boggiano 2528654c53 Merge branch '1.7' 6 years ago
Grzegorz Korba 0ee0138bed Support for ignoring packages in `outdated` command (#7682)
* Support for ignoring packages in `outdated` command. Fixes #7656
6 years ago
Jordi Boggiano 38a63ba05a Only show path for installed packages, refs #7698 6 years ago
Mariusz Zarzycki f72e2312dc Ran php-cs-fixer 6 years ago
Mariusz Zarzycki 77457ca474 Show command respects --path flag
Path added to package meta output
6 years ago
Nils Adermann 1747df97e7 Create pool in show command to use policy, remove todos 6 years ago
Nils Adermann 1228bcdffc Internalize pool creation in repository set, store root aliases in set
The pool is still exposed too early in a few places which will require
further refactoring
6 years ago
Nils Adermann 6ef65e5319 Add a new RepositorySet class and restrict pool usage to the solver
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0

First step for a refactoring of the package metadata loading mechanism
6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano 3f9e85a4c3 Merge remote-tracking branch 'unglud/feature/show-tree-json' 6 years ago
Jordi Boggiano 3d2b0deb6a
Merge pull request #7402 from m-jch/master
composer show options -t and -l do not work together, fixes #7210
6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
Matrosov 7221e4ea4e Generate tree view before displaying it
Add support json tree view
6 years ago
mohsen shafiei 20e89a7621 composer show options -t and -l do not work together, fixes #7210 6 years ago
Jordi Boggiano 785aba9d82 Merge remote-tracking branch 'stof/fix_show_columns' into 1.6 6 years ago
Jordi Boggiano fa539766b8 Output outdated warning on stderr, fixes #7218 6 years ago
Christophe Coevoet ce521e5697 Take only displayed packages into account to determine column width
The ShowCommand was taking all packages into account when determining the
max lengths used to display the width of each column. This was causing
unnecessary hiding of columns in case of using a longer name or a longer
version in a different package.
This was especially visible when using the outdated command, as it applies
filtering by default.
6 years ago
Jordi Boggiano b110f86aa0 Merge branch '1.5' 7 years ago
Tom Rochette c3b6c0c85e Make sure exitCode is defined in the show command. 7 years ago
Jordi Boggiano 6a08755c25 Merge branch '1.5' 7 years ago
Jordi Boggiano 5960f715f0 Add warning in show command if no dependencies are installed but the root package has dependencies, fixes #6820 7 years ago
Gawain Lynch f96e0e033b
Use Terminal class for dimensions post Symfony 3.2 7 years ago
Jordi Boggiano 26a50b3762 Merge branch '1.5' 7 years ago
Mihai Plasoianu 02b57ff4a2 Return non-zero exit code with --strict and single package 7 years ago
闫兴茂 277f05754d Add default sort for show --tree option 7 years ago
Jordi Boggiano 23ab57c311 Merge branch '1.4' 7 years ago
Patrick Pokatilo 57ed58346a Be strict and return non-zero exit code for outdated packages when showing all 7 years ago
Jordi Boggiano a2e22f7a84 Merge branch '1.4' 7 years ago
Jordi Boggiano 8b0e615232 Assume at least 80char wide terminal, fixes #6351 7 years ago
Jordi Boggiano 83798d8090 Avoid mixing stderr and stdout in outdated command as it mangles output 7 years ago
Issei.M 0856dfa084 Aligns the verb form of commands' description 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano e09c632c14 Rename a few fields in json output, refs #6228 7 years ago
Alexander Schwenn 527f5b8571 Print error message when json is requested for tree or single package info 7 years ago
Alexander Schwenn 74d82a51e3 Replace latestStyle by status to get style independent json output 7 years ago
Alexander Schwenn c70aaa421d Add json output for show command 7 years ago
Alexander Schwenn 818687849d Extract view logic from data preparation 7 years ago
Alexander Schwenn 64139ba327 Move loop-independent code outside of loop 7 years ago
Alexander Schwenn 086c9d5c56 Separate package warning from view representation 7 years ago
Alexander Schwenn 52ca1bd9c5 Move command termination outside of output loop 7 years ago
Alexander Schwenn e672628565 Separate package type from view representation 7 years ago
Alexander Schwenn 308fa88746 Move $io->write calls together 7 years ago
Alexander Schwenn 77e104bd4d Fix typo in local variable name 7 years ago
Jordi Boggiano eb5495b8e4 Merge branch '1.3' 8 years ago
Jordi Boggiano d6ffe1fd1d Add support for outdated command info without ANSI colors, fixes #6070 8 years ago
Ed Reel f29a302391 Return 1 if composer.json exists, but the package doesn't. 8 years ago
Sven Luijten b4a77e1c0e Add full stop to all command descriptions 8 years ago
Jordi Boggiano ed0829fed1 Simplify code and fix path to composer.json, refs #6001 8 years ago
Ed Reel afdae9c0e2 Do not throw InvalidArgumentException with the 'show' command if the working-dir argument is set and composer.json exists
- This prevents scripts from aborting when looping through a directory of projects
8 years ago
Pierre Rudloff 7d52bd6ed5 Non-zero status code when there are outdated packages (fixes #5901) 8 years ago
Jordi Boggiano 9c8617cd33 Merge branch '1.2' 8 years ago
Niels Keurentjes 6de7feeb86 Fix crash when listing root package without versions
When using certain parameters together in 'composer show', specifically '-s --outdated', the root package itself is inspected for its latest version. If the git repository it belongs to does not have any tags yet this would return FALSE, while the next call to printMeta requires a PackageInterface or NULL, causing a crash.

Refs #5808
8 years ago
Nicolas Grekas bfbcf03a6b Fix ShowCommand 8 years ago
Konstantin.Myakshin dc70b40d34 Use implode instead of join 8 years ago
Frank van den Brink e60a7216c6
Clarified minor-only option description 8 years ago
Frank van den Brink cb7377d2cb
Added minor-only option to show command to only show packages with minor updates 8 years ago
Frank van den Brink 28851ecdca
Revert "Added minor-only option to only show packages with minor updates"
This reverts commit 4b0e40d482.
8 years ago
Frank van den Brink 4b0e40d482
Added minor-only option to only show packages with minor updates 8 years ago
Jordi Boggiano 352e467f16 Always show abandoned packages in --outdated as they are outdated in a way 8 years ago
Kamran Ahmed 78a8a02978 Ignore the unfound packages 8 years ago
Jordi Boggiano 6146f7aded Take into account prefer-stable and dev packages when computing outdated, refs #5251 8 years ago
Jordi Boggiano 2a3b56e82c Fix constraint parsing bug in outdated, fixes #5251 8 years ago
Jordi Boggiano 3186b5eeca Avoid using the full pretty version for comparisons, fixes #5247 8 years ago
Jordi Boggiano aabe21d84d Add --direct and --outdated flags to ShowCommand & OutdatedCommand, fixes #5240 8 years ago
Jordi Boggiano 17f23f5c43 Write abandoned warning on stderr to avoid breaking the flow of the list 8 years ago
Jordi Boggiano c5f734dbf9 Merge remote-tracking branch 'barryvdh/show-latest' 8 years ago
Jordi Boggiano e7069dd5e8 Tweak colors in the output, make sure we load the proper version according to stability flags and add outdated command, refs #5028 8 years ago
Jordi Boggiano 9206c646a2 Merge remote-tracking branch 'barryvdh/show-outdated' 8 years ago
Jordi Boggiano 467ece15ed Skip regex engine when not necessary 8 years ago
Jordi Boggiano 21a9f21cc8 Add package filtering in show command, fixes #5212, closes #5215 8 years ago
Niels Keurentjes 818c3e707a Ton of phpDoc fixes. 8 years ago
Niels Keurentjes e6f21137ad Undefined or default return points fixed. 8 years ago
Barry vd. Heuvel fd46c7e4ba Reduce line length 8 years ago
Barry vd. Heuvel 54d86ebfc9 Use latest package for deprecations, cache latest packages 8 years ago
Barry vd. Heuvel 80be9a2c98 Add deprecated notice to show command 8 years ago
Barry vd. Heuvel ac606e4dc1 Add recommended version to show command 8 years ago
Niels Keurentjes 1017ab817f Corrected parameter handling. 8 years ago
Niels Keurentjes a3b2628748 Show -t incorrectly expanded self.version constraints. Fixes #4999 8 years ago
Jordi Boggiano 27e1c4358e Fix show/depends commands to display and abort when a circular dep was reached, fixes #4983 8 years ago
Jordi Boggiano 8cfbe7023d CS fixes 8 years ago
Jordi Boggiano bf1ddaa298 Fix method name for php5 8 years ago
Jordi Boggiano 1aec1c1fc8 Add --repository flag to init command, and rename --repository-url to --repository in create-project, fixes #4200, closes #4207, closes #2604, fixes #2920 8 years ago
Jordi Boggiano b6b2635f42 Merge pull request #4970 from barryvdh/list-installed-default
Change default behavior of show/list to --installed by default
8 years ago
Niels Keurentjes b059cbe37c Removed unused variables and includes, fixed functions being called with more arguments than declared. 8 years ago
Barry vd. Heuvel 2d2affdf56 Keep --installed option for BC 8 years ago
Barry vd. Heuvel 5fdb4c8af3 Make --installed default for show/list 8 years ago
Jordi Boggiano d7855d03c7 Fix some formatting and prettify the tree, refs #4917 8 years ago
Jordi Boggiano f681dbc51e Merge remote-tracking branch 'curry684/rewrite-depends' 8 years ago
Jordi Boggiano c9436438ff Add memoization to parseConstraints, saves some (6-7% here) RAM and marginal CPU time 8 years ago
Niels Keurentjes 692a3ed300 Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes. 8 years ago
Niels Keurentjes 0dab63e050 Unified all Windows tests throughout the code. 9 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano 1818b95149 CS fixes 9 years ago
Jordi Boggiano fd7267e4ad Show overridden versions (as well as original) in composer show -p 9 years ago
Jordi Boggiano 1a8aedaa9d Assume -i when running composer show --tree without arg 9 years ago
Jérémy Romey 94daedde06 Fixed typo in the ShowCommand 9 years ago
Jordi Boggiano 9b8a14179b Only list tree of packages required by root and not every installed package individually, refs #2600 9 years ago