Command Line Interface¶
codebasin [-h] [--version] [-v] [-q] [-R <report>] [-x <pattern>] [-p <platform>] [<analysis-file>]
positional arguments:
analysis-fileTOML file describing the analysis to be performed, including the codebase and platform descriptions.
options:
-h, --helpShow help message and exit.
--versionDisplay version information and exit.
-v, --verboseIncrease verbosity level.
-q, --quietDecrease verbosity level.
--debugEnable debug mode.
-R <report>Generate a report of the specified type.
summary: code divergence informationclustering: distance matrix and dendrogramduplicates: detected duplicate files
-x <pattern>, --exclude <pattern>Exclude files matching this pattern from the code base. May be specified multiple times.
-p <platform>, --platform <platform>Include the specified platform in the analysis. May be specified multiple times. If not specified, all platforms will be included.
Tree Tool¶
The tree tool generates a visualization of the code base where each file and directory is annotated with information about platform usage and coverage.
cbi-tree [-h] [--version] [-x <pattern>] [-p <platform>] [--prune] [-L <level>] <analysis-file>
positional arguments:
analysis-fileTOML file describing the analysis to be performed, including the codebase and platform descriptions.
options:
-h, --helpDisplay help message and exit.
--versionDisplay version information and exit.
-x <pattern>, --exclude <pattern>Exclude files matching this pattern from the code base. May be specified multiple times.
-p <platform>, --platform <platform>Include the specified platform in the analysis. May be specified multiple times. If not specified, all platforms will be included.
--prunePrune unused files from the tree.
-L <level>, --levels <level>Print only the specified number of levels.
Coverage Tool¶
The coverage tool reads a JSON compilation database and generates a JSON coverage file that is suitable to be read by other tools.
cbi-cov compute [-h] [-S <path>] [-x <pattern>] [-o <output path>] <input path>
positional arguments:
input pathPath to compilation database JSON file.
options:
-h, --helpDisplay help message and exit.
-S <path>, --source-dir <path>Path to source directory.
-x <pattern>, --exclude <pattern>Exclude files matching this pattern from the code base. May be specified multiple times.
-o <output path>, --output <output path>Path to coverage JSON file. If not specified, defaults to ‘coverage.json’.