Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify autocompletion for "path" arguments and option #582

Open
pyrech opened this issue Nov 26, 2024 · 0 comments
Open

Simplify autocompletion for "path" arguments and option #582

pyrech opened this issue Nov 26, 2024 · 0 comments

Comments

@pyrech
Copy link
Member

pyrech commented Nov 26, 2024

When a Castor task expects a path to be provided to an argument or option, it could be nice to have autocompletion for it.

We could add a AsPath attribute that would automatically make the autocompletion to suggests paths. Something like:

use Castor\AsPath;
use Castor\AsTask;

#[AsTask]
function foo(#[AsPath] string $path)
{
  // ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant