File tree
Expand file treeCollapse file tree1 file changed
+19
-1
lines changed Expand file treeCollapse file tree1 file changed
+19
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -75,6 +75,24 @@ This prints::
|
75 | 75 |
|
76 | 76 | HELLO FABIEN
|
77 | 77 |
|
| 78 | +Coloring the Output |
| 79 | +~~~~~~~~~~~~~~~~~~~ |
| 80 | + |
| 81 | +Whenever you output text, you can surround the text with tags to color its |
| 82 | +output. For example:: |
| 83 | + |
| 84 | +// green text |
| 85 | +$output->writeln('<info>foo</info>'); |
| 86 | + |
| 87 | +// yellow text |
| 88 | +$output->writeln('<comment>foo</comment>'); |
| 89 | + |
| 90 | +// black text on a cyan background |
| 91 | +$output->writeln('<question>foo</question>'); |
| 92 | + |
| 93 | +// white text on a red background |
| 94 | +$output->writeln('<error>foo</error>'); |
| 95 | + |
78 | 96 | Using Command Arguments
|
79 | 97 | -----------------------
|
80 | 98 |
|
@@ -164,7 +182,7 @@ to confirm an action before actually executing it. Add the following to your
|
164 | 182 | command::
|
165 | 183 |
|
166 | 184 | $dialog = $this->getHelperSet()->get('dialog');
|
167 |
| -if (!$dialog->askConfirmation($output, 'Continue with this action?', false)) { |
| 185 | +if (!$dialog->askConfirmation($output, '<question>Continue with this action?</question>', false)) { |
168 | 186 | return;
|
169 | 187 | }
|
170 | 188 |
|
|
You can’t perform that action at this time.
0 commit comments