-
Notifications
You must be signed in to change notification settings - Fork 30
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
Can this be used as jo for HCL? #88
Comments
Could you describe your use case and what feature you expect? I have not used |
The use case is creating valid HCL from shell scripts. |
We call
I am unsure what else |
@antonbabenko Doesn't really work: $ echo 'locals {}' | hcledit attribute append module.wrapper.source test --newline
locals {} |
Works for me: $ echo 'locals {}' | hcledit attribute append locals.test "\"test\"" --newline
locals {
test = "test"
} The syntax can be a bit tricky to get right (especially for deeply nested structures). |
@antonbabenko But I want to add a new element in the root. We need the equivalent of |
Yes, there are some limitations around making root blocks. I usually make a file with a placeholder and then modify it. |
Sorry, I know everything's possible, but the idea I brought up, |
What I understand is that apparently you like the comfort of jo, but I don't know how you want to improve hcledit specifically. Unless you can analyze the ergonomics of jo and make more specific requests, I don't know what to do. |
https://manpages.org/jo
The text was updated successfully, but these errors were encountered: