Skip to content

feat(audit): a report in a terminal ends by asking whether to update packages - #104

Merged
flipvh merged 1 commit into
mainfrom
feat/audit-asks-to-update
Nov 17, 2026
Merged

flipvh merged 1 commit into
mainfrom
feat/audit-asks-to-update

Conversation

@flipvh

@flipvh flipvh commented Nov 17, 2026

Copy link
Copy Markdown
Member

Since #95 (CLI 0.8.0), a bare cella audit is the read-only report, and only cella audit fix opens the update checkbox. The report mentions audit fix only when the security plan would change, so a run with outdated packages alone exited without pointing anywhere. The one-step flow of 0.7 was gone.

In a terminal, a report with outdated packages now ends with update packages? (y/N):

  • No (the default) or ctrl-c: writes nothing and exits 0, as before.
  • Yes: opens the audit fix checkbox, then its security pass, which judges the picked updates staged. That pass prints the security section a second time, now in the light of the picks.
  • No question: without a terminal (CI, scripts), with nothing outdated, or after a failed security pass.

cella audit fix is unchanged. The README's Audit section and the report job's help line now say the report asks.

Verification

  • pnpm check and the audit and CLI tests (50) pass.
  • Drove the build with expect in a pseudo-terminal against a cella checkout with 23 outdated rows:
    • Enter answered update packages? No and exited 0.
    • y opened the checkbox with all 23 rows; ctrl-c there exited 0.
    • The cella working tree was unchanged after both runs.

Size

Kind Files Added Removed Net
Source 2 +24 -8 +16
Docs 1 +4 -3 +1
Total 3 +28 -11 +17
  • Source: the closing question (confirmUpdate) and the branch that leads a yes into the update step; 2 of the lines are comments.
  • Docs: the README's Audit section stated "no prompts".

…packages

Since #95 a bare `cella audit` is the read-only report and only `cella audit fix`
opens the update checkbox. When only packages were outdated, the report pointed
nowhere and exited, so the one-step flow of 0.7 was gone.

In a terminal, a report with outdated packages now ends with `update packages? (y/N)`.
No, the default, and ctrl-c write nothing; yes opens the checkbox of `audit fix`
and its security pass, which judges the picked updates staged. Without a terminal,
with nothing outdated or after a failed security pass, it asks nothing.
@flipvh
flipvh merged commit 43fe665 into main Nov 17, 2026
7 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.

1 participant