jake.command.oss

Classes

OssCommand

Helper class that provides a standard way to create an ABC using

Module Contents

class jake.command.oss.OssCommand[source]

Bases: jake.command.BaseCommand

Helper class that provides a standard way to create an ABC using inheritance.

_console: rich.console.Console[source]
handle_args() int[source]
get_argument_parser_name() str[source]
get_argument_parser_help() str[source]
setup_argument_parser(arg_parser: argparse.ArgumentParser) None[source]
static _build_bom(components: Iterable[cyclonedx.model.component.Component]) cyclonedx.model.bom.Bom[source]
_print_oss_index_report(components: List[cyclonedx.model.component.Component]) None[source]
static _get_max_cvss_score_for_vulnerability(vulnerability: cyclonedx.model.vulnerability.Vulnerability) float[source]
static _get_max_cvss_score(component: cyclonedx.model.component.Component) float[source]
static _print_vulnerability(tree: rich.tree.Tree, v: cyclonedx.model.vulnerability.Vulnerability) None[source]
static _get_color_for_cvss_score(cvss_score: float = 0.0) str[source]
static _get_severity_for_cvss_score(cvss_score: float) str[source]