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
Jordi Boggiano
e6e636802f
Add support for a simplified pure ASCII version of the tree view, refs #2600
9 years ago
Jordi Boggiano
92ad33d11e
Undo some invalid merges and simplify code a little bit, refs #2600
9 years ago
Jérémy Romey
36271a7dd1
Added a tree view of required packages
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Rob Bast
a1427d7fd6
replace all occurences in code and comments
9 years ago
Olivier Laviale
cc522c20bb
Optimized this->getIO()
9 years ago
Rob Bast
5ae9e7fe22
remove spdx files, introduce external library
9 years ago
Kunal Mehta
f634c6946d
Update callers of VersionParser::formatVersion()
...
Tests were moved to BasePackageTest.
9 years ago
Rob Bast
dfbee6a532
cleaner solution
9 years ago
Rob Bast
7a50225389
disable path if no composer available, fixes #4101
...
gracefully remove the option and continue, after informing the user
9 years ago
Cees-Jan Kiewiet
c9d9b5085a
Replaced <error> with <warning> for abandoned package as it reflects the intention of this feature better
9 years ago
Jordi Boggiano
921b3a0eba
Fix regression with non-SPDX licenses in show command, refs #3885
9 years ago
Jordi Boggiano
6b3178b169
Merge remote-tracking branch 'isoroku/fix-misspellings'
...
Conflicts:
doc/articles/handling-private-packages-with-satis.md
9 years ago
Jordi Boggiano
dbfd47eeca
CS fixes
9 years ago
jakoch
74a077dd3d
updated spdx-license handling to include metadata
...
issue https://github.com/composer/composer/issues/3744
summary of changes
- replaced bin script "fetch-spdx-identifiers" by "update-spdx-licenses"
- "update-spdx-licenses" uses "Composer/Util/SpdxLicensesUpdater" to update "spdx-licenses.json" file with license identifier, fullname and osi-approved-status
- dropped "spdx-identifiers.json" (identifiers only)
- dropped "SpdxLicenseIdentifier", it's just "SpdxLicense" now
- modified "ShowCommand" to output the license with metadata and removed some unused method arguments (cleanup)
9 years ago
isoroku
e0657b60a2
Fix misspellings
9 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
9 years ago
Alexander Schwenn
395903863b
Add 'info' alias for 'show' command
10 years ago
Rafael Dohms
5ed01fb60d
Abandoned support in `show`
...
Executing `composer show` on an abandoned package displays the warnings for package status.
10 years ago
Alessandro Biavati
c5d1a3575c
Added `path` flag to show install path for installed packages
10 years ago
Andreas Hennings
39c09d5192
Add psr-4 stuff in a few more places.
11 years ago
Nicolas Bastien
52711d121c
Remove unused use statement.
11 years ago
Romain Neutron
9b7fc0bae7
Update INF to PHP_INT_MAX as recommended by Stof
11 years ago
Romain Neutron
a965642769
Do not use detected width for output formatting if it is not available
11 years ago
Jordi Boggiano
e330763c5f
Fix issue when multiple paths are mapped to one dir in the show command
11 years ago
Jordi Boggiano
0eb2821733
Fix undefined var error, fixes #2241
11 years ago
Nils Adermann
d00ca4bcdb
Add a Command event triggered by all comands which load plugins
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Jordi Boggiano
e82cf6835e
Allow show <package> <constraint> as well as a version
11 years ago
Jordi Boggiano
be861f090a
Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646
11 years ago
Miklós Márton
40c9584746
Fixes #1653
11 years ago
Jordi Boggiano
542d10d8fd
Remove all occurrences of getLocalDevRepository and getLocalRepositories calls
11 years ago
Jordi Boggiano
518253e150
Show proper repo information and not always the default ones
12 years ago
Jordi Boggiano
8ac4b649c3
Merge remote-tracking branch 'gerryvdm/master'
...
Conflicts:
src/Composer/Command/ShowCommand.php
12 years ago
Jordi Boggiano
d4fb7bd251
Substract 1char from the width to avoid blank lines in the output on windows
12 years ago
Sebastian Krebs
b5c7d97e8c
Pretty "show"-command
12 years ago
Gerry Vandermaesen
77290069a2
Added option to only show package names
...
Added the --name-only (-N) option to the show command to only list
package names (and exclude version and description).
This is useful to produce a list of package names to be parsed by
a shell script for example (bash completion comes to mind).
12 years ago
Gerry Vandermaesen
2552f4c65e
Added option to only show available packages
...
Added the --available (-a) option to the show command to only list
the available packages, similar to the --installed and --platform
options.
Additionally changed the output formatting when limiting the
package result to remove the hierarchy when only one type is being
showed. This facilitates parsing of a list of packages (for example
for shell scripting and completion).
12 years ago
Jordi Boggiano
514a3cde77
CS fixes
12 years ago
Jordi Boggiano
9b2e3766c0
Show reference as well in show command overview
12 years ago
Jordi Boggiano
365058ee99
Fix CS
12 years ago
go.schmidt
f748fb1953
fixed version output for show command
12 years ago
Pascal Borreli
83fd3967f0
Fixed PHPDoc
12 years ago
Jordi Boggiano
ee0cd07468
CS fixes
12 years ago
Jordi Boggiano
59edd4e6d6
Show version in composer show --self
12 years ago
Ismael Ambrosi
18086aa5e7
Added option to display dev-required packages
12 years ago
Fabien Potencier
b5897b291d
Fix PHP warning in the show command when using the -s flag
12 years ago
Jordi Boggiano
a0903d4d35
Update create-project and show commands to use the new filterPackages method
12 years ago
Jordi Boggiano
d6de4a0036
Rename Package interfaces to reduce BC issues
12 years ago
Jordi Boggiano
e0edd882c5
Add --self flag to composer show to see the root package info
12 years ago
Jordi Boggiano
fd776853a4
Show version for platform/installed packages, fixes #825
12 years ago
Jordi Boggiano
ffecd39d33
Refactor repositories handling in config/factory/loader, fixes #828 , fixes #826
12 years ago
Jordi Boggiano
3ac11b932c
Expose default repositories in system config file
12 years ago
Jordi Boggiano
4a6ae454c2
Merge remote-tracking branch 'dpb587/multiple-repos'
...
Conflicts:
src/Composer/Factory.php
src/Composer/Package/Loader/RootPackageLoader.php
tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
12 years ago
Jordi Boggiano
5edb49c067
Show include path in show command
12 years ago
Jordi Boggiano
704b7a655f
Clarity fix
12 years ago
Jordi Boggiano
c694bd57a3
Merge remote-tracking branch 'digitalkaoz/issue_397'
12 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
12 years ago
Danny Berger
8d6d155153
Add internal support for multiple default composer repositories.
12 years ago
Jordi Boggiano
7837be0621
Fix creation of ComposerRepository, refs #587
12 years ago
Jordi Boggiano
4cc45d3c37
Add require-dev and other missing links in show command
12 years ago
Povilas Balzaravicius Pawka
443ce65765
Fix fatal on show command
12 years ago
Jordi Boggiano
ea2d46bcff
Fix ComposerRepository calls, fixes #475
12 years ago
digitalkaoz
7cdb793b40
added support section to composer.json
12 years ago
Igor Wiedler
cd6eb49427
fix notice when running show command on package without keywords
12 years ago
Jordi Boggiano
09083089ff
Merge remote-tracking branch 'digitalkaoz/show_command_keywords'
...
Conflicts:
src/Composer/Command/ShowCommand.php
12 years ago
Jordi Boggiano
5dba49af54
Show package descriptions in show/search commands, merge similar packages in show, fixes #366
12 years ago
Jordi Boggiano
33c926c303
Show/Search command cleanups
12 years ago
digitalkaoz
741a66e504
added description to show command, searching in description aswell
12 years ago
digitalkaoz
e6e90bb174
added keywords to show command
12 years ago
Martin Hasoň
98d7e31c74
Sort versions before print
12 years ago
Jordi Boggiano
0e6cf61b67
Avoid showing duplicates versions
13 years ago
Jordi Boggiano
5eb333680b
Rename findPackagesByName to findPackages and allow version arg
13 years ago
Jordi Boggiano
6971657ad0
Merge debug:packages into the show command (if used without package arg)
13 years ago
Jordi Boggiano
247d19e2f8
Add type hints
13 years ago
Jordi Boggiano
93baa38d5c
Allow show command to work without a composer.json
13 years ago
Jordi Boggiano
385075cda3
Cosmetic fixes
13 years ago
Christophe Coevoet
1fdb7aef56
Changed the ShowCommand to use the new method
13 years ago
Jordi Boggiano
3b9dd59da3
Fix typo
13 years ago
Jordi Boggiano
9452a94e30
Fix regression in previous merge
13 years ago
Igor Wiedler
85ec42bac3
display highest package version by default on show command
13 years ago
Jordi Boggiano
a2caa7c5e6
Adjustments to the show command
13 years ago
digitalkaoz
6451087039
added a show command for packages
13 years ago