-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for control placeholders (#9)
- `%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" ] ```
- Loading branch information
1 parent
6e85ea9
commit cbbd746
Showing
8 changed files
with
94 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "jf" | ||
version = "0.4.1" | ||
version = "0.4.2" | ||
edition = "2021" | ||
authors = ["Arijit Basu <[email protected]>"] | ||
description = 'A small utility to safely format and print JSON objects in the commandline' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#[cfg(test)] | ||
mod tests; | ||
|
||
fn main() { | ||
let args = std::env::args().skip(1).map(Into::into); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters