Skip to content

v1.1.0

Choose a tag to compare

@HafizMMoaz HafizMMoaz released this 27 Aug 23:38
· 42 commits to main since this release
2c0159f

New Features

  • Auto generated help output for -h and --help on any command (#2)
  • "Did you mean" suggestions for unknown command names, using Levenshtein distance (#3)
  • Command aliases, so a command can be reached by multiple names (#4)
  • Console wide quiet mode and --no-ansi / -q global flags (#8)
  • Progress bar and spinner helpers (CLI::progress(), CLI::spinner()) (#14)
  • Signal handling via pcntl: CLI::onSignal(), CLI::onSigint(), CLI::restoreSignal() (#12)
  • Typed argument and option definitions with validation for commands (#6)
  • CLI::masked() prompt helper that echoes a mask character for sensitive input (#16)
  • PHPStan static analysis config and composer script (#10)

Fixes

  • Declare required PHP extensions in composer.json (#1)

Documentation

  • Real README overview of the CLI, Command and Console components (#5)
  • Step by step guide to registering and running a custom command (#7)
  • Docs for output, color and input helpers (#11)

Internal

  • Subprocess tests covering command dispatch and process exit codes (#13)
  • CI badge and PHPStan in the lint job (#9)
  • PHPStan raised to level 10