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 --raw / -r option in toml get #19

Closed
gnprice opened this issue Dec 4, 2022 · 1 comment
Closed

Add --raw / -r option in toml get #19

gnprice opened this issue Dec 4, 2022 · 1 comment
Assignees

Comments

@gnprice
Copy link
Owner

gnprice commented Dec 4, 2022

The interface I'd like here is inspired by jq -r, which I frequently find handy:

   •   --raw-output / -r:

       With this option, if the filter´s result is a string then it will be  writ‐
       ten  directly  to  standard  output  rather  than being formatted as a JSON
       string with quotes. This can be  useful  for  making  jq  filters  talk  to
       non-JSON-based systems.

Requested by @kurtbuilds in #8. There's also a TODO in the code:

// TODO: support shell-friendly output like `jq -r`
@gnprice gnprice self-assigned this Dec 4, 2022
@gnprice gnprice closed this as completed in 3f91f13 Dec 4, 2022
@gnprice gnprice changed the title Add --raw / -r option Add --raw / -r option in toml get Dec 4, 2022
@gnprice
Copy link
Owner Author

gnprice commented Dec 5, 2022

Released this feature in v0.2.2! Thanks again @kurtbuilds for the request.

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

1 participant