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 --export-variables and --escape-json #19

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Conversation

AislingHPE
Copy link
Contributor

@AislingHPE AislingHPE commented Aug 26, 2024

Also move some code to the reader package, since it is needed by the new json package.

This returns a JSON blob of the variables with behaviour described in the README file. I also disabled the default behaviour of Go where it escapes certain characters for HTML reasons because I don't think it will be needed here in the majority of cases, and it makes the condition statements harder to read if you're not using a special app like jq.

The reason i want to add this is because it contains some of the intermediate information I use in the test cases, and making it part of the CLI will allow me to generate that test data more easily.

@AislingHPE AislingHPE force-pushed the add-export-variables branch from e28b395 to a8a17b3 Compare August 26, 2024 16:31
@AislingHPE AislingHPE force-pushed the add-export-variables branch from a8a17b3 to 0ff21b7 Compare August 27, 2024 09:56
@AislingHPE AislingHPE force-pushed the add-export-variables branch from 0ff21b7 to 174a3b1 Compare August 27, 2024 10:14
Base automatically changed from debug-logging to main August 27, 2024 10:23
@AislingHPE AislingHPE force-pushed the add-export-variables branch 2 times, most recently from 13df74e to 2b0b41b Compare August 27, 2024 10:24
@AislingHPE AislingHPE marked this pull request as ready for review August 27, 2024 10:24
@AislingHPE AislingHPE force-pushed the add-export-variables branch from 2b0b41b to 1484da1 Compare August 27, 2024 10:44
Also move some code to the reader package, since it is needed by the new json package.

This returns a JSON blob of the variables with behaviour described in the README file. I also disabled the default behaviour of Go where it escapes certain characters for HTML reasons because I don't think it will be needed here in the majority of cases, and it makes the condition statements harder to read if you're not using a special app like jq.
@AislingHPE AislingHPE force-pushed the add-export-variables branch from 1484da1 to 48fb546 Compare August 27, 2024 10:45
@AislingHPE AislingHPE merged commit 8eb198f into main Aug 30, 2024
2 checks passed
@AislingHPE AislingHPE deleted the add-export-variables branch August 30, 2024 10:43
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

Successfully merging this pull request may close these issues.

2 participants