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 support for control placeholders #9

Merged
merged 1 commit into from
May 27, 2023
Merged

Conversation

sayanarijit
Copy link
Owner

  • %R enable raw mode - render but do not format output
  • %Y enable YAML mode - format output into YAML
  • %J enable pretty JSON mode - format output into pretty JSON

Example:

jf "%R%*q" a b c
"a","b","c"

jf "%Y[%*q]" a b c
- a
- b
- c

jf "%J[%*q]" a b c
[
  "a",
  "b",
  "c"
]

- `%R` enable raw mode - render but do not format output
- `%Y` enable YAML mode - format output into YAML
- `%J` enable pretty JSON mode - format output into pretty JSON

Example:

```bash
jf "%R%*q" a b c
"a","b","c"

jf "%Y[%*q]" a b c
- a
- b
- c

jf "%J[%*q]" a b c
[
  "a",
  "b",
  "c"
]
```
@sayanarijit sayanarijit merged commit cbbd746 into main May 27, 2023
1 check passed
@sayanarijit sayanarijit deleted the control-placeholders branch May 27, 2023 16:51
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.

None yet

1 participant