| 1 |
CHANGELOG |
| 2 |
========= |
| 3 |
|
| 4 |
5.1.0 |
| 5 |
----- |
| 6 |
|
| 7 |
* `Command::setHidden()` is final since Symfony 5.1 |
| 8 |
* Add `SingleCommandApplication` |
| 9 |
* Add `Cursor` class |
| 10 |
|
| 11 |
5.0.0 |
| 12 |
----- |
| 13 |
|
| 14 |
* removed support for finding hidden commands using an abbreviation, use the full name instead |
| 15 |
* removed `TableStyle::setCrossingChar()` method in favor of `TableStyle::setDefaultCrossingChar()` |
| 16 |
* removed `TableStyle::setHorizontalBorderChar()` method in favor of `TableStyle::setDefaultCrossingChars()` |
| 17 |
* removed `TableStyle::getHorizontalBorderChar()` method in favor of `TableStyle::getBorderChars()` |
| 18 |
* removed `TableStyle::setVerticalBorderChar()` method in favor of `TableStyle::setVerticalBorderChars()` |
| 19 |
* removed `TableStyle::getVerticalBorderChar()` method in favor of `TableStyle::getBorderChars()` |
| 20 |
* removed support for returning `null` from `Command::execute()`, return `0` instead |
| 21 |
* `ProcessHelper::run()` accepts only `array|Symfony\Component\Process\Process` for its `command` argument |
| 22 |
* `Application::setDispatcher` accepts only `Symfony\Contracts\EventDispatcher\EventDispatcherInterface` |
| 23 |
for its `dispatcher` argument |
| 24 |
* renamed `Application::renderException()` and `Application::doRenderException()` |
| 25 |
to `renderThrowable()` and `doRenderThrowable()` respectively. |
| 26 |
|
| 27 |
4.4.0 |
| 28 |
----- |
| 29 |
|
| 30 |
* deprecated finding hidden commands using an abbreviation, use the full name instead |
| 31 |
* added `Question::setTrimmable` default to true to allow the answer to be trimmed |
| 32 |
* added method `minSecondsBetweenRedraws()` and `maxSecondsBetweenRedraws()` on `ProgressBar` |
| 33 |
* `Application` implements `ResetInterface` |
| 34 |
* marked all dispatched event classes as `@final` |
| 35 |
* added support for displaying table horizontally |
| 36 |
* deprecated returning `null` from `Command::execute()`, return `0` instead |
| 37 |
* Deprecated the `Application::renderException()` and `Application::doRenderException()` methods, |
| 38 |
use `renderThrowable()` and `doRenderThrowable()` instead. |
| 39 |
* added support for the `NO_COLOR` env var (https://no-color.org/) |
| 40 |
|
| 41 |
4.3.0 |
| 42 |
----- |
| 43 |
|
| 44 |
* added support for hyperlinks |
| 45 |
* added `ProgressBar::iterate()` method that simplify updating the progress bar when iterating |
| 46 |
* added `Question::setAutocompleterCallback()` to provide a callback function |
| 47 |
that dynamically generates suggestions as the user types |
| 48 |
|
| 49 |
4.2.0 |
| 50 |
----- |
| 51 |
|
| 52 |
* allowed passing commands as `[$process, 'ENV_VAR' => 'value']` to |
| 53 |
`ProcessHelper::run()` to pass environment variables |
| 54 |
* deprecated passing a command as a string to `ProcessHelper::run()`, |
| 55 |
pass it the command as an array of its arguments instead |
| 56 |
* made the `ProcessHelper` class final |
| 57 |
* added `WrappableOutputFormatterInterface::formatAndWrap()` (implemented in `OutputFormatter`) |
| 58 |
* added `capture_stderr_separately` option to `CommandTester::execute()` |
| 59 |
|
| 60 |
4.1.0 |
| 61 |
----- |
| 62 |
|
| 63 |
* added option to run suggested command if command is not found and only 1 alternative is available |
| 64 |
* added option to modify console output and print multiple modifiable sections |
| 65 |
* added support for iterable messages in output `write` and `writeln` methods |
| 66 |
|
| 67 |
4.0.0 |
| 68 |
----- |
| 69 |
|
| 70 |
* `OutputFormatter` throws an exception when unknown options are used |
| 71 |
* removed `QuestionHelper::setInputStream()/getInputStream()` |
| 72 |
* removed `Application::getTerminalWidth()/getTerminalHeight()` and |
| 73 |
`Application::setTerminalDimensions()/getTerminalDimensions()` |
| 74 |
* removed `ConsoleExceptionEvent` |
| 75 |
* removed `ConsoleEvents::EXCEPTION` |
| 76 |
|
| 77 |
3.4.0 |
| 78 |
----- |
| 79 |
|
| 80 |
* added `SHELL_VERBOSITY` env var to control verbosity |
| 81 |
* added `CommandLoaderInterface`, `FactoryCommandLoader` and PSR-11 |
| 82 |
`ContainerCommandLoader` for commands lazy-loading |
| 83 |
* added a case-insensitive command name matching fallback |
| 84 |
* added static `Command::$defaultName/getDefaultName()`, allowing for |
| 85 |
commands to be registered at compile time in the application command loader. |
| 86 |
Setting the `$defaultName` property avoids the need for filling the `command` |
| 87 |
attribute on the `console.command` tag when using `AddConsoleCommandPass`. |
| 88 |
|
| 89 |
3.3.0 |
| 90 |
----- |
| 91 |
|
| 92 |
* added `ExceptionListener` |
| 93 |
* added `AddConsoleCommandPass` (originally in FrameworkBundle) |
| 94 |
* [BC BREAK] `Input::getOption()` no longer returns the default value for options |
| 95 |
with value optional explicitly passed empty |
| 96 |
* added console.error event to catch exceptions thrown by other listeners |
| 97 |
* deprecated console.exception event in favor of console.error |
| 98 |
* added ability to handle `CommandNotFoundException` through the |
| 99 |
`console.error` event |
| 100 |
* deprecated default validation in `SymfonyQuestionHelper::ask` |
| 101 |
|
| 102 |
3.2.0 |
| 103 |
------ |
| 104 |
|
| 105 |
* added `setInputs()` method to CommandTester for ease testing of commands expecting inputs |
| 106 |
* added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface) |
| 107 |
* added StreamableInputInterface |
| 108 |
* added LockableTrait |
| 109 |
|
| 110 |
3.1.0 |
| 111 |
----- |
| 112 |
|
| 113 |
* added truncate method to FormatterHelper |
| 114 |
* added setColumnWidth(s) method to Table |
| 115 |
|
| 116 |
2.8.3 |
| 117 |
----- |
| 118 |
|
| 119 |
* remove readline support from the question helper as it caused issues |
| 120 |
|
| 121 |
2.8.0 |
| 122 |
----- |
| 123 |
|
| 124 |
* use readline for user input in the question helper when available to allow |
| 125 |
the use of arrow keys |
| 126 |
|
| 127 |
2.6.0 |
| 128 |
----- |
| 129 |
|
| 130 |
* added a Process helper |
| 131 |
* added a DebugFormatter helper |
| 132 |
|
| 133 |
2.5.0 |
| 134 |
----- |
| 135 |
|
| 136 |
* deprecated the dialog helper (use the question helper instead) |
| 137 |
* deprecated TableHelper in favor of Table |
| 138 |
* deprecated ProgressHelper in favor of ProgressBar |
| 139 |
* added ConsoleLogger |
| 140 |
* added a question helper |
| 141 |
* added a way to set the process name of a command |
| 142 |
* added a way to set a default command instead of `ListCommand` |
| 143 |
|
| 144 |
2.4.0 |
| 145 |
----- |
| 146 |
|
| 147 |
* added a way to force terminal dimensions |
| 148 |
* added a convenient method to detect verbosity level |
| 149 |
* [BC BREAK] made descriptors use output instead of returning a string |
| 150 |
|
| 151 |
2.3.0 |
| 152 |
----- |
| 153 |
|
| 154 |
* added multiselect support to the select dialog helper |
| 155 |
* added Table Helper for tabular data rendering |
| 156 |
* added support for events in `Application` |
| 157 |
* added a way to normalize EOLs in `ApplicationTester::getDisplay()` and `CommandTester::getDisplay()` |
| 158 |
* added a way to set the progress bar progress via the `setCurrent` method |
| 159 |
* added support for multiple InputOption shortcuts, written as `'-a|-b|-c'` |
| 160 |
* added two additional verbosity levels, VERBOSITY_VERY_VERBOSE and VERBOSITY_DEBUG |
| 161 |
|
| 162 |
2.2.0 |
| 163 |
----- |
| 164 |
|
| 165 |
* added support for colorization on Windows via ConEmu |
| 166 |
* add a method to Dialog Helper to ask for a question and hide the response |
| 167 |
* added support for interactive selections in console (DialogHelper::select()) |
| 168 |
* added support for autocompletion as you type in Dialog Helper |
| 169 |
|
| 170 |
2.1.0 |
| 171 |
----- |
| 172 |
|
| 173 |
* added ConsoleOutputInterface |
| 174 |
* added the possibility to disable a command (Command::isEnabled()) |
| 175 |
* added suggestions when a command does not exist |
| 176 |
* added a --raw option to the list command |
| 177 |
* added support for STDERR in the console output class (errors are now sent |
| 178 |
to STDERR) |
| 179 |
* made the defaults (helper set, commands, input definition) in Application |
| 180 |
more easily customizable |
| 181 |
* added support for the shell even if readline is not available |
| 182 |
* added support for process isolation in Symfony shell via |
| 183 |
`--process-isolation` switch |
| 184 |
* added support for `--`, which disables options parsing after that point |
| 185 |
(tokens will be parsed as arguments) |
| 186 |
|