Extract new ccsh filter "inspect" #3668
Labels
difficulty:low
Solving this is likely not that difficult
pr-analysis
Issues that touch the analysis pr(oject).
priority:medium
Set by PO
Feature request
Create new ccsh filter "inspect"
Description
As an auditor, I want to extract a filter that shows me the structure of a
cc.json
so that I can verify the structure of acc.json
without uncompressing, prettyfying and opening it in my editor.In audits we quickly want to verify that a
cc.json
has the expected contents. Often we need to do this before merging two or morecc.json
files. Imagine one.git.cc.json
file was created in the git root and asonar.cc.json
was created for a sub-project (happens in mono-repos) then we cannot simply merge them, because the nodes would not align. We already have a filter to show the contents of acc.json
. It isccsh modify -p 1 xyz.cc.json
but it is not obvious that "modify" can also print the contents of acc.json
. I make this feature request so the--print-levels
parameter is removed from "modify" and moved to a new filter "inspect".Acceptance criteria
cc.json
Usage suggestion
ccsh inspect xyz.cc.json
--> prints the first level of the cc.jsonccsh inspect --level 3 xyz.cc.json
--> prints the first three levels of the cc.json. Alternative to --level is --depthAssumptions & Exclusions
No new features are added here. It is simply about extracting the --print-levels functionality from modify and make it easier to find.
Development notes (optional Task Breakdown)
Open questions
The text was updated successfully, but these errors were encountered: