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

Please add "script-friendly output" flag to rekkor-cli #1395

Closed
udf2457 opened this issue Mar 23, 2023 · 0 comments · Fixed by #1486
Closed

Please add "script-friendly output" flag to rekkor-cli #1395

udf2457 opened this issue Mar 23, 2023 · 0 comments · Fixed by #1486
Labels
enhancement New feature or request

Comments

@udf2457
Copy link

udf2457 commented Mar 23, 2023

At present, rekor-cli is too verbose to be used in scripts becasue it produces too much extraneous output, even with --format json set, for example:

./go/bin/rekor-cli search --sha $(openssl dgst -sha256 blob | awk '{print $NF}') --format json
Found matching entries (listed by UUID):
{"UUIDs":["somehexgoeshere"]}

There should be way to output the relevant output only, i.e. no "Found matching entries (listed by UUID):" line.

Its the same with rekor-cli get, which outputs extraneous header lines and hides the actual json behind Body::

LogID: foo
Index: bar
IntegratedTime: 2023-01-01T01:01:01Z
UUID: foobar
Body:

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 a pull request may close this issue.

1 participant