You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library provides the completion class `ShellPathCompletion` which defers path completion to the shell's built-in path completion behaviour rather than implementing it in PHP.
149
+
150
+
```php
151
+
new Completion\ShellPathCompletion(
152
+
Completion::ALL_COMMANDS,
153
+
'path',
154
+
Completion::TYPE_OPTION
155
+
)
156
+
157
+
```
158
+
146
159
## Behaviour notes
147
160
148
161
* Option shortcuts are not offered as completion options, however requesting completion (ie. pressing tab) on a valid option shortcut will complete.
149
162
* Completion is not implemented for the `--option="value"` style of passing a value to an option, however `--option value` and `--option "value"` work and are functionally identical.
150
-
* There is currently no way to hand-off to BASH to complete folder/file names.
0 commit comments