Repository navigation
feat(audit): a report in a terminal ends by asking whether to update packages - #104
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #95 (CLI 0.8.0), a bare
cella auditis the read-only report, and onlycella audit fixopens the update checkbox. The report mentionsaudit fixonly 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):audit fixcheckbox, 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.cella audit fixis unchanged. The README's Audit section and thereportjob's help line now say the report asks.Verification
pnpm checkand the audit and CLI tests (50) pass.expectin a pseudo-terminal against a cella checkout with 23 outdated rows:update packages? Noand exited 0.yopened the checkbox with all 23 rows; ctrl-c there exited 0.Size
confirmUpdate) and the branch that leads a yes into the update step; 2 of the lines are comments.