diff --git a/README.md b/README.md index 86313a02..803deaf0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ etc., but it leverages PHP's scripting capabilities and its extensive library ec It comes with many features to make your life easier: * Seamless parsing of **arguments and options**, simplifying input handling -* **Autocomplete** support for faster and error-free typing +* **[Autocomplete](https://castor.jolicode.com/going-further/interacting-with-castor/autocomplete)** support for faster and error-free typing * A built-in list of useful functions: * [`run()`](https://castor.jolicode.com/getting-started/run/#the-run-function): Runs external processes, enabling seamless integration with external tools * [`parallel()`](https://castor.jolicode.com/going-further/helpers/parallel/#the-parallel-function): Parallelizes process execution to maximize resource utilization diff --git a/doc/going-further/interacting-with-castor/autocomplete.md b/doc/going-further/interacting-with-castor/autocomplete.md index d9c542f0..92dbb993 100644 --- a/doc/going-further/interacting-with-castor/autocomplete.md +++ b/doc/going-further/interacting-with-castor/autocomplete.md @@ -20,7 +20,7 @@ castor completion --help ## Autocomplete arguments -You have to options to make your arguments autocompleted. +You have two options to make your arguments autocompleted. ### Static suggestions @@ -78,6 +78,7 @@ function get_argument_autocompletion(CompletionInput $input): array >[!NOTE] > Because the syntax `my_callback(...)` is not allowed on attribute, you need to > specify the `autocomplete` callback with either: +> > - the string syntax (`my_namespace\my_function` or `'MyNamespace\MyClass::myFunction'`) > - the array syntax (`['MyNamespace\MyClass', 'myFunction']`). diff --git a/doc/index.md b/doc/index.md index 6d7c3f77..2f21708b 100644 --- a/doc/index.md +++ b/doc/index.md @@ -16,7 +16,7 @@ etc., but it leverages PHP's scripting capabilities and its extensive library ec It comes with many features to make your life easier: * Seamless parsing of **arguments and options**, simplifying input handling -* **Autocomplete** support for faster and error-free typing +* **[Autocomplete](going-further/interacting-with-castor/autocomplete.md)** support for faster and error-free typing * A built-in list of useful functions: * [`run()`](getting-started/run.md#the-run-function): Runs external processes, enabling seamless integration with external tools * [`parallel()`](going-further/helpers/parallel.md#the-parallel-function): Parallelizes process execution to maximize resource utilization