-
-
Notifications
You must be signed in to change notification settings - Fork 998
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
output-folder flag for scaffold #3652
Comments
Thanks for creating this @platymatt , This is a solid enhancement, and not one that would be terribly difficult, I don't think. I'll mark it as My preferred solution would be that This also adds an additional wrinkle that the catalog TUI doesn't offer a way to select where scaffolding will take place once a user decides to scaffold. It might be good to add an extra keybinding that lets a user do that. It might require integrating or building something like yazi to let someone interact with their filesystem to create the destination for the unit. |
@yhakbar would a workaround for this to make custom script that is called in a |
I'm not sure if that's the best workaround. I think some testing would be required. Personally, I would recommend that you look at actually implementing an |
@platymatt You can achieve this currently by using boilerplate dependencies. There is then an issue with the fact that scaffold runs an (that also has an example boilerplate that should give you some idea on how that works) |
Describe the enhancement
When using
terragrunt scaffold
it creates the terragrunt.hcl in your working directory. I would like to be able to specify an output directory with a flag or variable. My goal is to place the terragrunt.hcl within my nested folder structure with the scaffold command.I have tried messing with the following boilerplate.yml below as well as adding a
before:
section that would change my current directory to one provided by the variables or use anafter:
section to move the produced file to the desired location and neither work.Additional context
Add any other context about the enhancement here.
Things you might want to address include:
Alternatives I may have to consider is running a
after:
block with a script to create the directories and place the file where I want it to go. I haven't tried that yet. I've been looking for examples for this use case and haven't found any.PoC (Proof of Concept)
No PoC available at this time.
RFC Not Needed
boilerplate
tool allows for an--output-folder
flag and requires it, butterragrunt scaffold
doesn't allow the output-folder flag to be set.The text was updated successfully, but these errors were encountered: