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 flag for defining path/value separator in json_info. #18

Open
SpicyLemon opened this issue Aug 11, 2021 · 0 comments
Open

Add flag for defining path/value separator in json_info. #18

SpicyLemon opened this issue Aug 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SpicyLemon
Copy link
Owner

Currently, json_info uses = as the separator between the path and info (if both are being displayed). It'd be nice to be able to define this string, though.

My initial use case would be to make it easier to separate the paths and info into columns using the column command. It'd be something along the lines of json_info -r --separator '~' -f foo.json | column -s '~' -t. Technically, this can also be done using json_info -r -f foo.json | sed 's/ = /~/' | column -s '~' -t though, so maybe it's not all that needed for that.

But who knows. Maybe someone would like to use ': ' there instead, or maybe something else.

I guess maybe this is just a nice-to-have at some point.

@SpicyLemon SpicyLemon added the enhancement New feature or request label Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant