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 ability to use as a cli app #22

Closed
ctomkow opened this issue Oct 2, 2022 · 3 comments
Closed

add ability to use as a cli app #22

ctomkow opened this issue Oct 2, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ctomkow
Copy link
Owner

ctomkow commented Oct 2, 2022

  • Include the feature to pipe data into the cli app, like typical *nix tools allow. This would allow for chaining of commands.
    curl my.api.with.highly.nested.json.response | jsonparse --find_key_chain ['my', 'key', 'chain']

  • Also, support the ability to provide a file of JSON as a flag.
    jsonparse --file my.json --find_key 'mykey'

@ctomkow ctomkow added the enhancement New feature or request label Oct 2, 2022
@ctomkow ctomkow self-assigned this Oct 19, 2022
@ctomkow
Copy link
Owner Author

ctomkow commented Nov 12, 2022

  • Working cli interface, currently released as 0.12.0.dev1.
  • todo:
    • documentation of functionality.
    • output each found item on a separate line (as opposed to a list like the library does)

@ctomkow
Copy link
Owner Author

ctomkow commented Dec 2, 2022

todo: modify cli help message on key-value error, complaining about not valid json. I prefer '"test"' over \"test\"

@ctomkow
Copy link
Owner Author

ctomkow commented Dec 11, 2022

cli interface added in release 0.12.0

@ctomkow ctomkow closed this as completed Dec 11, 2022
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