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

allow extracting CVEs from stdin #23

Closed
ryran opened this Issue Nov 4, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@ryran
Owner

ryran commented Nov 4, 2016

We could also allow for finding CVEs in stdin, e.g., cat somefile.csv | rhsecapi which would use a regex like CVE-[0-9]{4}-[0-9]{4,} to pull out any CVE numbers ...

@ryran ryran self-assigned this Nov 4, 2016

@ryran ryran added the enhancement label Nov 4, 2016

@ryran ryran changed the title from accept space- or newline-separated list of CVEs on stdin to allow extracting CVEs from stdin Nov 4, 2016

ryran added a commit that referenced this issue Nov 4, 2016

@ryran

This comment has been minimized.

Show comment
Hide comment
@ryran

ryran Nov 4, 2016

Owner

DONE!

$ rhsecapi --help | grep -A4 stdin
  -s, --extract-stdin   Extract CVEs from stdin (CVEs will be matched by regex
                        'CVE-[0-9]{4}-[0-9]{4,}' and duplicates will be
                        discarded); note that auto-detection of terminal width
                        is not possible in this mode and defaults to a width
                        of '70' (this can be overridden with '--width' option)
Owner

ryran commented Nov 4, 2016

DONE!

$ rhsecapi --help | grep -A4 stdin
  -s, --extract-stdin   Extract CVEs from stdin (CVEs will be matched by regex
                        'CVE-[0-9]{4}-[0-9]{4,}' and duplicates will be
                        discarded); note that auto-detection of terminal width
                        is not possible in this mode and defaults to a width
                        of '70' (this can be overridden with '--width' option)

@ryran ryran closed this Nov 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment