mass_driver.cli

Command line entrypoint for mass-driver

Module Contents

Functions

gen_parser

Create the initial parser

repo_list_group

Inject the repo-path/repo-filelist group of args

cache_arg

Add the cache/no-cache arguments

activity_arg

Add the Activity file selector argument

jsonout_args

Add the output files argument

plugin_subparser

Inject a generic subparser for listing out plugin details

run_subparser

Inject the run subparser

scanners_subparser

Inject the scanners subparser

reviewpr_subparser

Inject the view PR subparser

subparsers

Add the subparsers for all commands

cli

Run the mass_driver cli

main

Run mass-driver as CLI, not from API call

API

mass_driver.cli.gen_parser() argparse.ArgumentParser[source]

Create the initial parser

mass_driver.cli.repo_list_group(subparser: argparse.ArgumentParser)[source]

Inject the repo-path/repo-filelist group of args

mass_driver.cli.cache_arg(subparser: argparse.ArgumentParser)[source]

Add the cache/no-cache arguments

mass_driver.cli.activity_arg(subparser: argparse.ArgumentParser)[source]

Add the Activity file selector argument

mass_driver.cli.jsonout_args(subparser: argparse.ArgumentParser)[source]

Add the output files argument

mass_driver.cli.plugin_subparser(subparser, plugin: str, func: Callable)[source]

Inject a generic subparser for listing out plugin details

mass_driver.cli.run_subparser(subparser)[source]

Inject the run subparser

mass_driver.cli.scanners_subparser(subparser)[source]

Inject the scanners subparser

mass_driver.cli.reviewpr_subparser(subparser)[source]

Inject the view PR subparser

mass_driver.cli.subparsers(parser: argparse.ArgumentParser) argparse.ArgumentParser[source]

Add the subparsers for all commands

mass_driver.cli.cli(arguments: list[str])[source]

Run the mass_driver cli

mass_driver.cli.main()[source]

Run mass-driver as CLI, not from API call