Skip to content
This repository was archived by the owner on Oct 5, 2026. It is now read-only.

Add list command to print available commands - #40

Merged
rector-bot merged 1 commit into
mainfrom
list-command
Jun 7, 2026
Merged

rector-bot merged 1 commit into
mainfrom
list-command

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Restores the previous CLI behavior: bin/jack list works again (it was the smoke-test command in the anywherephp build before #39, but never actually existed in the entropy console).

  • ListCommand prints the same overview as --help and exits 0
  • registered explicitly in ContainerFactory with lazy HelpPrinter resolution, to avoid the circular dependency ListCommand → HelpPrinter → CommandRegistry → ListCommand
  • covered by ListCommandTest (exit code + name; output assertions are not possible since OutputPrinter is silent under PHPUnit by design)
  • build/target-repository/bare_run.yaml switched back from --help to php bin/jack list, so the anywherephp/jack smoke test exercises the command again

Also includes a small Rector auto-fix in BreakPointCommand (composer rector output: DateTimeImmutable import + simplified return).

$ php bin/jack list
Commands:
  list                   List available commands
  open-versions          Open composer.json version constraints to the very near next version
  breakpoint             Let your CI tell you, if there are too many major-version outdated packages
  raise-to-installed     Raise your version in "composer.json" to installed one to get the latest version available in any composer update

ECS ✅ Rector ✅ PHPStan ✅ PHPUnit ✅ (15 tests)

@rector-bot
rector-bot merged commit a5ef091 into main Jun 7, 2026
10 checks passed
@rector-bot
rector-bot deleted the list-command branch June 7, 2026 22:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants