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

Add possibility to create new file at the same time as the main command #27

Open
antonbabenko opened this issue May 14, 2021 · 1 comment

Comments

@antonbabenko
Copy link

Thanks a lot for this tool!!!

Given an empty file new.tf, I want to start writing into it like this:

$ hcledit block append "" module.stack -f new.tf

This is not supported, right?

It would be handy to have such an option to script the whole creation of HCL using hcledit.

@minamijoyo
Copy link
Owner

Hi @antonbabenko, Thank you for your proposal. It's not supported yet.

I think the problem is not only for a new file, the root cause of this problem is that the current implementation of the block append command doesn't accept the top-level body in a file as a parent address. If it were possible, the file is empty or not wouldn't matter.

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

2 participants