| 148 |
lars |
1 |
CHANGELOG
|
|
|
2 |
=========
|
|
|
3 |
|
|
|
4 |
6.2
|
|
|
5 |
---
|
|
|
6 |
|
|
|
7 |
* Improve truecolor terminal detection in some cases
|
|
|
8 |
* Add support for 256 color terminals (conversion from Ansi24 to Ansi8 if terminal is capable of it)
|
|
|
9 |
* Deprecate calling `*Command::setApplication()`, `*FormatterStyle::setForeground/setBackground()`, `Helper::setHelpSet()`, `Input*::setDefault()`, `Question::setAutocompleterCallback/setValidator()`without any arguments
|
|
|
10 |
* Change the signature of `OutputFormatterStyleInterface::setForeground/setBackground()` to `setForeground/setBackground(?string)`
|
|
|
11 |
* Change the signature of `HelperInterface::setHelperSet()` to `setHelperSet(?HelperSet)`
|
|
|
12 |
|
|
|
13 |
6.1
|
|
|
14 |
---
|
|
|
15 |
|
|
|
16 |
* Add support to display table vertically when calling setVertical()
|
|
|
17 |
* Add method `__toString()` to `InputInterface`
|
|
|
18 |
* Added `OutputWrapper` to prevent truncated URL in `SymfonyStyle::createBlock`.
|
|
|
19 |
* Deprecate `Command::$defaultName` and `Command::$defaultDescription`, use the `AsCommand` attribute instead
|
|
|
20 |
* Add suggested values for arguments and options in input definition, for input completion
|
|
|
21 |
* Add `$resumeAt` parameter to `ProgressBar#start()`, so that one can easily 'resume' progress on longer tasks, and still get accurate `getEstimate()` and `getRemaining()` results.
|
|
|
22 |
|
|
|
23 |
6.0
|
|
|
24 |
---
|
|
|
25 |
|
|
|
26 |
* `Command::setHidden()` has a default value (`true`) for `$hidden` parameter and is final
|
|
|
27 |
* Remove `Helper::strlen()`, use `Helper::width()` instead
|
|
|
28 |
* Remove `Helper::strlenWithoutDecoration()`, use `Helper::removeDecoration()` instead
|
|
|
29 |
* `AddConsoleCommandPass` can not be configured anymore
|
|
|
30 |
* Remove `HelperSet::setCommand()` and `getCommand()` without replacement
|
|
|
31 |
|
|
|
32 |
5.4
|
|
|
33 |
---
|
|
|
34 |
|
|
|
35 |
* Add `TesterTrait::assertCommandIsSuccessful()` to test command
|
|
|
36 |
* Deprecate `HelperSet::setCommand()` and `getCommand()` without replacement
|
|
|
37 |
|
|
|
38 |
5.3
|
|
|
39 |
---
|
|
|
40 |
|
|
|
41 |
* Add `GithubActionReporter` to render annotations in a Github Action
|
|
|
42 |
* Add `InputOption::VALUE_NEGATABLE` flag to handle `--foo`/`--no-foo` options
|
|
|
43 |
* Add the `Command::$defaultDescription` static property and the `description` attribute
|
|
|
44 |
on the `console.command` tag to allow the `list` command to instantiate commands lazily
|
|
|
45 |
* Add option `--short` to the `list` command
|
|
|
46 |
* Add support for bright colors
|
|
|
47 |
* Add `#[AsCommand]` attribute for declaring commands on PHP 8
|
|
|
48 |
* Add `Helper::width()` and `Helper::length()`
|
|
|
49 |
* The `--ansi` and `--no-ansi` options now default to `null`.
|
|
|
50 |
|
|
|
51 |
5.2.0
|
|
|
52 |
-----
|
|
|
53 |
|
|
|
54 |
* Added `SingleCommandApplication::setAutoExit()` to allow testing via `CommandTester`
|
|
|
55 |
* added support for multiline responses to questions through `Question::setMultiline()`
|
|
|
56 |
and `Question::isMultiline()`
|
|
|
57 |
* Added `SignalRegistry` class to stack signals handlers
|
|
|
58 |
* Added support for signals:
|
|
|
59 |
* Added `Application::getSignalRegistry()` and `Application::setSignalsToDispatchEvent()` methods
|
|
|
60 |
* Added `SignalableCommandInterface` interface
|
|
|
61 |
* Added `TableCellStyle` class to customize table cell
|
|
|
62 |
* Removed `php ` prefix invocation from help messages.
|
|
|
63 |
|
|
|
64 |
5.1.0
|
|
|
65 |
-----
|
|
|
66 |
|
|
|
67 |
* `Command::setHidden()` is final since Symfony 5.1
|
|
|
68 |
* Add `SingleCommandApplication`
|
|
|
69 |
* Add `Cursor` class
|
|
|
70 |
|
|
|
71 |
5.0.0
|
|
|
72 |
-----
|
|
|
73 |
|
|
|
74 |
* removed support for finding hidden commands using an abbreviation, use the full name instead
|
|
|
75 |
* removed `TableStyle::setCrossingChar()` method in favor of `TableStyle::setDefaultCrossingChar()`
|
|
|
76 |
* removed `TableStyle::setHorizontalBorderChar()` method in favor of `TableStyle::setDefaultCrossingChars()`
|
|
|
77 |
* removed `TableStyle::getHorizontalBorderChar()` method in favor of `TableStyle::getBorderChars()`
|
|
|
78 |
* removed `TableStyle::setVerticalBorderChar()` method in favor of `TableStyle::setVerticalBorderChars()`
|
|
|
79 |
* removed `TableStyle::getVerticalBorderChar()` method in favor of `TableStyle::getBorderChars()`
|
|
|
80 |
* removed support for returning `null` from `Command::execute()`, return `0` instead
|
|
|
81 |
* `ProcessHelper::run()` accepts only `array|Symfony\Component\Process\Process` for its `command` argument
|
|
|
82 |
* `Application::setDispatcher` accepts only `Symfony\Contracts\EventDispatcher\EventDispatcherInterface`
|
|
|
83 |
for its `dispatcher` argument
|
|
|
84 |
* renamed `Application::renderException()` and `Application::doRenderException()`
|
|
|
85 |
to `renderThrowable()` and `doRenderThrowable()` respectively.
|
|
|
86 |
|
|
|
87 |
4.4.0
|
|
|
88 |
-----
|
|
|
89 |
|
|
|
90 |
* deprecated finding hidden commands using an abbreviation, use the full name instead
|
|
|
91 |
* added `Question::setTrimmable` default to true to allow the answer to be trimmed
|
|
|
92 |
* added method `minSecondsBetweenRedraws()` and `maxSecondsBetweenRedraws()` on `ProgressBar`
|
|
|
93 |
* `Application` implements `ResetInterface`
|
|
|
94 |
* marked all dispatched event classes as `@final`
|
|
|
95 |
* added support for displaying table horizontally
|
|
|
96 |
* deprecated returning `null` from `Command::execute()`, return `0` instead
|
|
|
97 |
* Deprecated the `Application::renderException()` and `Application::doRenderException()` methods,
|
|
|
98 |
use `renderThrowable()` and `doRenderThrowable()` instead.
|
|
|
99 |
* added support for the `NO_COLOR` env var (https://no-color.org/)
|
|
|
100 |
|
|
|
101 |
4.3.0
|
|
|
102 |
-----
|
|
|
103 |
|
|
|
104 |
* added support for hyperlinks
|
|
|
105 |
* added `ProgressBar::iterate()` method that simplify updating the progress bar when iterating
|
|
|
106 |
* added `Question::setAutocompleterCallback()` to provide a callback function
|
|
|
107 |
that dynamically generates suggestions as the user types
|
|
|
108 |
|
|
|
109 |
4.2.0
|
|
|
110 |
-----
|
|
|
111 |
|
|
|
112 |
* allowed passing commands as `[$process, 'ENV_VAR' => 'value']` to
|
|
|
113 |
`ProcessHelper::run()` to pass environment variables
|
|
|
114 |
* deprecated passing a command as a string to `ProcessHelper::run()`,
|
|
|
115 |
pass it the command as an array of its arguments instead
|
|
|
116 |
* made the `ProcessHelper` class final
|
|
|
117 |
* added `WrappableOutputFormatterInterface::formatAndWrap()` (implemented in `OutputFormatter`)
|
|
|
118 |
* added `capture_stderr_separately` option to `CommandTester::execute()`
|
|
|
119 |
|
|
|
120 |
4.1.0
|
|
|
121 |
-----
|
|
|
122 |
|
|
|
123 |
* added option to run suggested command if command is not found and only 1 alternative is available
|
|
|
124 |
* added option to modify console output and print multiple modifiable sections
|
|
|
125 |
* added support for iterable messages in output `write` and `writeln` methods
|
|
|
126 |
|
|
|
127 |
4.0.0
|
|
|
128 |
-----
|
|
|
129 |
|
|
|
130 |
* `OutputFormatter` throws an exception when unknown options are used
|
|
|
131 |
* removed `QuestionHelper::setInputStream()/getInputStream()`
|
|
|
132 |
* removed `Application::getTerminalWidth()/getTerminalHeight()` and
|
|
|
133 |
`Application::setTerminalDimensions()/getTerminalDimensions()`
|
|
|
134 |
* removed `ConsoleExceptionEvent`
|
|
|
135 |
* removed `ConsoleEvents::EXCEPTION`
|
|
|
136 |
|
|
|
137 |
3.4.0
|
|
|
138 |
-----
|
|
|
139 |
|
|
|
140 |
* added `SHELL_VERBOSITY` env var to control verbosity
|
|
|
141 |
* added `CommandLoaderInterface`, `FactoryCommandLoader` and PSR-11
|
|
|
142 |
`ContainerCommandLoader` for commands lazy-loading
|
|
|
143 |
* added a case-insensitive command name matching fallback
|
|
|
144 |
* added static `Command::$defaultName/getDefaultName()`, allowing for
|
|
|
145 |
commands to be registered at compile time in the application command loader.
|
|
|
146 |
Setting the `$defaultName` property avoids the need for filling the `command`
|
|
|
147 |
attribute on the `console.command` tag when using `AddConsoleCommandPass`.
|
|
|
148 |
|
|
|
149 |
3.3.0
|
|
|
150 |
-----
|
|
|
151 |
|
|
|
152 |
* added `ExceptionListener`
|
|
|
153 |
* added `AddConsoleCommandPass` (originally in FrameworkBundle)
|
|
|
154 |
* [BC BREAK] `Input::getOption()` no longer returns the default value for options
|
|
|
155 |
with value optional explicitly passed empty
|
|
|
156 |
* added console.error event to catch exceptions thrown by other listeners
|
|
|
157 |
* deprecated console.exception event in favor of console.error
|
|
|
158 |
* added ability to handle `CommandNotFoundException` through the
|
|
|
159 |
`console.error` event
|
|
|
160 |
* deprecated default validation in `SymfonyQuestionHelper::ask`
|
|
|
161 |
|
|
|
162 |
3.2.0
|
|
|
163 |
------
|
|
|
164 |
|
|
|
165 |
* added `setInputs()` method to CommandTester for ease testing of commands expecting inputs
|
|
|
166 |
* added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface)
|
|
|
167 |
* added StreamableInputInterface
|
|
|
168 |
* added LockableTrait
|
|
|
169 |
|
|
|
170 |
3.1.0
|
|
|
171 |
-----
|
|
|
172 |
|
|
|
173 |
* added truncate method to FormatterHelper
|
|
|
174 |
* added setColumnWidth(s) method to Table
|
|
|
175 |
|
|
|
176 |
2.8.3
|
|
|
177 |
-----
|
|
|
178 |
|
|
|
179 |
* remove readline support from the question helper as it caused issues
|
|
|
180 |
|
|
|
181 |
2.8.0
|
|
|
182 |
-----
|
|
|
183 |
|
|
|
184 |
* use readline for user input in the question helper when available to allow
|
|
|
185 |
the use of arrow keys
|
|
|
186 |
|
|
|
187 |
2.6.0
|
|
|
188 |
-----
|
|
|
189 |
|
|
|
190 |
* added a Process helper
|
|
|
191 |
* added a DebugFormatter helper
|
|
|
192 |
|
|
|
193 |
2.5.0
|
|
|
194 |
-----
|
|
|
195 |
|
|
|
196 |
* deprecated the dialog helper (use the question helper instead)
|
|
|
197 |
* deprecated TableHelper in favor of Table
|
|
|
198 |
* deprecated ProgressHelper in favor of ProgressBar
|
|
|
199 |
* added ConsoleLogger
|
|
|
200 |
* added a question helper
|
|
|
201 |
* added a way to set the process name of a command
|
|
|
202 |
* added a way to set a default command instead of `ListCommand`
|
|
|
203 |
|
|
|
204 |
2.4.0
|
|
|
205 |
-----
|
|
|
206 |
|
|
|
207 |
* added a way to force terminal dimensions
|
|
|
208 |
* added a convenient method to detect verbosity level
|
|
|
209 |
* [BC BREAK] made descriptors use output instead of returning a string
|
|
|
210 |
|
|
|
211 |
2.3.0
|
|
|
212 |
-----
|
|
|
213 |
|
|
|
214 |
* added multiselect support to the select dialog helper
|
|
|
215 |
* added Table Helper for tabular data rendering
|
|
|
216 |
* added support for events in `Application`
|
|
|
217 |
* added a way to normalize EOLs in `ApplicationTester::getDisplay()` and `CommandTester::getDisplay()`
|
|
|
218 |
* added a way to set the progress bar progress via the `setCurrent` method
|
|
|
219 |
* added support for multiple InputOption shortcuts, written as `'-a|-b|-c'`
|
|
|
220 |
* added two additional verbosity levels, VERBOSITY_VERY_VERBOSE and VERBOSITY_DEBUG
|
|
|
221 |
|
|
|
222 |
2.2.0
|
|
|
223 |
-----
|
|
|
224 |
|
|
|
225 |
* added support for colorization on Windows via ConEmu
|
|
|
226 |
* add a method to Dialog Helper to ask for a question and hide the response
|
|
|
227 |
* added support for interactive selections in console (DialogHelper::select())
|
|
|
228 |
* added support for autocompletion as you type in Dialog Helper
|
|
|
229 |
|
|
|
230 |
2.1.0
|
|
|
231 |
-----
|
|
|
232 |
|
|
|
233 |
* added ConsoleOutputInterface
|
|
|
234 |
* added the possibility to disable a command (Command::isEnabled())
|
|
|
235 |
* added suggestions when a command does not exist
|
|
|
236 |
* added a --raw option to the list command
|
|
|
237 |
* added support for STDERR in the console output class (errors are now sent
|
|
|
238 |
to STDERR)
|
|
|
239 |
* made the defaults (helper set, commands, input definition) in Application
|
|
|
240 |
more easily customizable
|
|
|
241 |
* added support for the shell even if readline is not available
|
|
|
242 |
* added support for process isolation in Symfony shell via
|
|
|
243 |
`--process-isolation` switch
|
|
|
244 |
* added support for `--`, which disables options parsing after that point
|
|
|
245 |
(tokens will be parsed as arguments)
|