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

An expression for selecting a file #30

Open
loreanvictor opened this issue Dec 21, 2023 · 0 comments
Open

An expression for selecting a file #30

loreanvictor opened this issue Dec 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@loreanvictor
Copy link
Owner

While running reusable recipes, it is useful to allow the user choose one of their existing files (in the scope of the recipe). This is not currently possible with prompt and choices. It would look perhaps something like this:

prompt: Which file do you want to pick?
choose file: ./workflows/**/*

choose file accepts a glob. It can be enhanced to treat paths without any magic elements as folders and list files directly in that path.

Considerations:

  • What about choosing folders? Should it be an explicit option to say "pick folders not files"?
  • What about hidden files / paths? I suspect this can be done easily with an include hidden option similar to copy and update.
@loreanvictor loreanvictor added the enhancement New feature or request label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant