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.
Quick start
Section titled “Quick start”ccsh inspect project.cc.json.gz --levels=2root- README.md- src- - a.ts- - libEach - marks one level below the root. The output shows node names only, no metrics.
Options
Section titled “Options”| Option | Description |
|---|---|
[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, --help | show the help and exit |
Usage: ccsh inspect [-h] [-l=<level>] [FILE]Piped input
Section titled “Piped input”Instead of a file, pipe a map into the tool:
cat project.cc.json | ccsh inspectIf a named file cannot be read, the tool exits with code 1.
Related
Section titled “Related”- Structure Modifier: change the structure you see here
- Validation Tool: check that a file is a valid cc.json file