Skip to content

Commit c5a2379

Browse files
committed
Fix readme layout
A few code blocks and paragraphs weren't indented to their parent bullet point.
1 parent b287259 commit c5a2379

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,41 +25,41 @@ If you don't need any custom completion behaviour, you can simply add the comple
2525

2626
2. For standalone Symfony Console applications, add an instance of `CompletionCommand` to your application's `Application::getDefaultCommands()` method:
2727

28-
```php
29-
protected function getDefaultCommands()
30-
{
31-
//...
32-
$commands[] = new \Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand();
33-
//...
34-
}
35-
```
36-
37-
For Symfony Framework applications, register the `CompletionCommand` as a service in `app/config/services.yml`:
38-
39-
```yaml
40-
services:
41-
#...
42-
console.completion_command:
43-
class: Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand
44-
tags:
45-
- { name: console.command }
46-
#...
47-
```
28+
```php
29+
protected function getDefaultCommands()
30+
{
31+
//...
32+
$commands[] = new \Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand();
33+
//...
34+
}
35+
```
36+
37+
For Symfony Framework applications, register the `CompletionCommand` as a service in `app/config/services.yml`:
38+
39+
```yaml
40+
services:
41+
#...
42+
console.completion_command:
43+
class: Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand
44+
tags:
45+
- { name: console.command }
46+
#...
47+
```
4848

4949
3. Register completion for your application by running one of the following in a terminal, replacing `[program]` with the command you use to run your application (eg. 'composer'):
5050

51-
```bash
52-
# BASH ~4.x, ZSH
53-
source <([program] _completion --generate-hook)
51+
```bash
52+
# BASH ~4.x, ZSH
53+
source <([program] _completion --generate-hook)
5454

55-
# BASH ~3.x, ZSH
56-
[program] _completion --generate-hook | source /dev/stdin
55+
# BASH ~3.x, ZSH
56+
[program] _completion --generate-hook | source /dev/stdin
5757

58-
# BASH (any version)
59-
eval $([program] _completion --generate-hook)
60-
```
58+
# BASH (any version)
59+
eval $([program] _completion --generate-hook)
60+
```
6161

62-
By default this registers completion for the absolute path to you application, which will work if the program on accessible on your PATH. You can specify a program name to complete for instead using the `--program` option, which is required if you're using an alias to run the program.
62+
By default this registers completion for the absolute path to you application, which will work if the program on accessible on your PATH. You can specify a program name to complete for instead using the `--program` option, which is required if you're using an alias to run the program.
6363

6464
4. If you want the completion to apply automatically for all new shell sessions, add the command from step 3 to your shell's profile (eg. `~/.bash_profile` or `~/.zshrc`)
6565

@@ -83,7 +83,7 @@ By default, no completion results will be returned for option and argument value
8383
class MyCommand extends Command implements CompletionAwareInterface
8484
{
8585
...
86-
86+
8787
public function completeOptionValues($optionName, CompletionContext $context)
8888
{
8989
if ($optionName == 'some-option') {

0 commit comments

Comments
 (0)