Skip to content

Json cli#92

Open
ompushkara wants to merge 2 commits intomainfrom
json-cli
Open

Json cli#92
ompushkara wants to merge 2 commits intomainfrom
json-cli

Conversation

@ompushkara
Copy link
Copy Markdown
Collaborator

Summary

Checklist
  • All commits are signed-off, using DCO
  • All new code has docstrings and type annotations
  • All new code is covered by tests. Aim for at least 90% coverage. CI is configured to highlight lines not covered by tests.
  • Public facing changes are paired with documentation changes
  • Release note has been added to CHANGELOG.md if needed

@ompushkara ompushkara force-pushed the json-cli branch 6 times, most recently from 453ec7f to 4586e90 Compare April 21, 2026 09:38
@ompushkara ompushkara requested a review from sampras343 April 21, 2026 09:52
- Take JSON input as a flag in addition to the bespoke flags that are already present
- Bespoke flags take precedence if the key exists in both
- Validates the JSON keys against the flags that already exist as input. Throws error if an invalid option is given as key in JSON
- Allow stdin JSON input when --json - is given
- Reserve model in --json for MODEL_PATH when no positional; positional wins
- Updated README for the --json flag
- JSON schema file for validation and editor autocompletion
- Add integration tests for JSON input
- Add json tests for pkcs11 in test-pkcs11.sh

Signed-off-by: ompushkara <omotilal@redhat.com>
Signed-off-by: ompushkara <omotilal@redhat.com>
@sampras343 sampras343 added the enhancement New feature or request label Apr 24, 2026
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

Successfully merging this pull request may close these issues.

2 participants