Commit 63c69ad
authored
feat: organize CLI help commands into logical groups (#317)
* feat: organize help commands into logical groups
Organize the sourcetool CLI help output into three logical command
groups to improve discoverability and user experience:
- Verification Commands: verifycommit, audit, status
- Attestation & Evaluation Commands: checklevel, checklevelprov,
checktag, prov
- Configuration & Setup Commands: setup, auth, policy, createpolicy
This uses Cobra's AddGroup feature to categorize commands by their
primary function, making it easier for users to find the command
they need.
Assisted-by: Claude Code
Signed-off-by: Ralph Bean <[email protected]>
* refactor: separate policy commands into dedicated group
Move createpolicy and policy commands from the Configuration & Setup
group into their own Policy Commands group for better organization.
The help output now shows four distinct command groups:
- Verification Commands
- Attestation & Evaluation Commands
- Policy Commands
- Configuration & Setup Commands
This makes policy management commands more discoverable and logically
separated from general configuration tasks.
Assisted-by: Claude Code
Signed-off-by: Ralph Bean <[email protected]>
* docs: clarify audit command description
Change audit command short description from "Audits the SLSA properties
and controls of a repository" to "Verifies multiple commits in the branch
history" to better describe what the command actually does.
The word "multiple" is more accurate than "all" since the command can be
limited with --depth and --ending-commit flags.
Assisted-by: Claude Code
Signed-off-by: Ralph Bean <[email protected]>
* refactor: reorganize commands into Assessment group
Rename "Attestation & Evaluation Commands" to "Assessment Commands"
and move status from Verification to Assessment group.
The new organization better reflects command behavior:
Verification Commands (2):
- audit: verifies multiple commits by reading existing VSAs
- verifycommit: verifies single commit by reading existing VSA
Assessment Commands (5):
- status: assesses current repository controls
- checklevel: assesses controls and creates VSA
- checklevelprov: assesses with provenance creation
- checktag: assesses tag operations
- prov: creates provenance without policy evaluation
"Assessment" encompasses both evaluation (status, checklevel) and
attestation creation (prov), making it a better umbrella term than
"Attestation & Evaluation".
Assisted-by: Claude Code
Signed-off-by: Ralph Bean <[email protected]>
---------
Signed-off-by: Ralph Bean <[email protected]>1 parent e7d44dd commit 63c69ad
File tree
12 files changed
+62
-23
lines changed- internal/cmd
12 files changed
+62
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | | - | |
51 | | - | |
52 | 69 | | |
53 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
54 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
55 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
56 | 84 | | |
57 | | - | |
| 85 | + | |
58 | 86 | | |
59 | 87 | | |
60 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments