Dynamic prompts in project.json
executors
#13049
mthines
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
After setting up multiple different projects in NX I'm completely in love with the executors in
project.json
.It's easy for me to separate different logic into a consistent DX, but I'm struggling to create some executors.
Currently I have a library containing a
Hasura
setup, and I would like to create a executor for applying and creating seeds in the DB. TheHasura CLI
requires a unique name for the seed, but as I don't have dynamic prompts available, I'm unable to create the executor.The generator dynamic prompts would completely solve this issue for me.
https://nx.dev/recipes/generators/generator-options#adding-dynamic-prompts
Perhaps I'm able to use the
--args
in some way to pass the name like that but then I don't get the prompt like I do with generator dynamic prompts.Is there a limitation or a reasoning why dynamic prompts isn't part of the
project.json
.I think that would expand the possibilities for scoping features a lot more without having to always write fully fledged custom generators.
Reference:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions