Skip to content

Inspection Tool

The Inspection Tool (ccsh inspect) prints the folder structure of a cc.json map in the console, as a tree of node names. Use it to check what a map contains and which paths to pass to ccsh modify or to expect after a merge.

Terminal window
ccsh inspect project.cc.json.gz --levels=2
root
- README.md
- src
- - a.ts
- - lib

Each - marks one level below the root. The output shows node names only, no metrics.

OptionDescription
[FILE]input project file; reads piped input when omitted
-l, -d, --depth, --levels=<level>number of levels below the root to print (default: 1)
-h, --helpshow the help and exit
Usage: ccsh inspect [-h] [-l=<level>] [FILE]

Instead of a file, pipe a map into the tool:

Terminal window
cat project.cc.json | ccsh inspect

If a named file cannot be read, the tool exits with code 1.