Releases: sayanarijit/jf
Releases · sayanarijit/jf
v0.3.0
Added support for expandable named placeholders.
%(NAME)*s
,%(NAME)*q
expand named values as array items.%(NAME)**s
,%(NAME)**q
expand named values as key value pairs.- Pass values for named array items using
NAME=ITEM_N
syntax. - Pass values for named key value pairs using
NAME=KEY_N NAME=VALUE_N
syntax.
Also, changed the syntax for optional placeholder from $?(...)
to $(...)?
.
v0.2.7
- Added support for optional placeholders. ```bash jf "{str_or_bool: %?(str)q %?(bool)s, optional: %?(optional)q}" str=true # {"str_or_bool":"true","optional":null} ``` - Added support for placeholders with variable length values. ```bash jf [%*s] 1 2 3 # [1,2,3] jf {%**q} one 1 two 2 three 3 # {"one":"1","two":"2","three":"3"} ``` - Generate manpage.
v0.2.6
Fixed another bug related to default values To reproduce: `jf "%(foo=bar)q: %(foo)q"` Should fail, but gave `{"bar":"bar"}`
v0.2.5
Fail for incomplete named placeholder
v0.2.4
Fixed a bug causing named placeholder values being overridden by default values.
v0.2.3
Added support for default values in named placeholders.
Example:
jf "{1: %(1=1)s, one: %(1=1)q, foo: %(foo=default)q, empty: %(bar=)q, esc: %(x=(\))q}" foo=bar
Output:
{"1":1,"one":"1","foo":"bar","empty":"","esc":"()"}
v0.2.2
Use %v to print jf version
v0.2.1
- Support named placeholders
%(NAME)q
and%(NAME)s
. - Improve errors and instructions.
- Optimize binary release.
v0.1.2
Bump for binary release
v0.1.1
Initial release.