Skip to content

fix(PSD-10215): clarify min-severity help text - #26

Merged
c0detamer merged 1 commit into
mainfrom
PSD-10215/clarify-min-severity-help
Nov 4, 2026
Merged

c0detamer merged 1 commit into
mainfrom
PSD-10215/clarify-min-severity-help

Conversation

@c0detamer

Copy link
Copy Markdown
Collaborator

What?

  • workloads risky -S/--min-severity help now says it is a filter (severity >= N, min 1) and does not affect sort order; points to --sort/--order.
  • Added a line to the risky command description.
  • Fixed skill docs: range said "0–4" but 0 is rejected; "above severity 2" now "at severity 2 or higher".
  • Added a help-text test.

Why?

A customer read -S 2 as a sort option. Code is correct; the help text was ambiguous.

Tested on dev?

No. Help text and docs only. go build, go test, and golangci-lint pass; new test covers the rendered help.

  -S/--min-severity on workloads risky is a filter, not a sort option. Say so in the flag usage and command description, and point to
  --sort/--order. Fix two skill docs: the range said "0–4" but the code rejects 0, and "above severity 2" should read "at severity 2 or
  higher".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified in the CLI help and documentation clarification changes.

No open issues 🎉

What changed in this PR

Clarifies workloads risky --min-severity help in pscli without changing filtering or sorting behavior.

Changes:

  • Explains that -S filters severity inclusively, requires at least 1, and does not control sorting.
  • Corrects the severity range and threshold wording in skill documentation.
  • Adds a rendered-help test for the sorting clarification.
File Description
internal/​skill/​perfectscale/​SKILL.md Clarifies that the example includes severity 2.
internal/​skill/​perfectscale/​references/​cli-reference.md Corrects the minimum severity and distinguishes filtering from sorting.
internal/​cli/​workloads.go Clarifies the command description and flag help.
internal/​cli/​app_test.go Tests the rendered minimum-severity help text.

Review effort: Balanced

@c0detamer
c0detamer merged commit 2460551 into main Nov 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants