Repository navigation
Color Update-Repositories quiet lines by bucket and list each repository's stashes - #107
Merged
Merged
Conversation
…ory's stashes -Quiet printed every line but one needing attention in green and colored the totals in another palette (updated blue, up to date green), so an updated repository did not stand out from an up-to-date one, and a stash left behind was invisible in the form the startup update prints. Every repository line now starts with => and is colored by its bucket, and the totals counts follow the same colors: updated green, up to date white, need attention red (Write-LogError, still shown at the Quiet log level), skipped yellow. Under a repository's line, -Quiet lists its stashes in white: "* Stashes =>" one tab in, each git stash list entry two tabs in, with a blank line before the next repository. Only a folder that is the top of its own repository is asked, so a path inside another repository never shows that repository's stashes. Format-RepositoryUpdateResult, the line text and the buckets are unchanged. Released as 1.9.0.
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.
Description
Update-Repositories -Quietprinted every line but one needing attention in green and colored the totals line in a different palette (updated blue, up to date green), so an updated repository did not stand out from an up-to-date one. A stash left behind (a restore that conflicted, or one made by hand and forgotten) was also invisible in the compact output the startup update prints.Every repository line starts with
=>and is colored by its bucket: updated green (Write-LogSuccess), up to date white (Write-LogStep), need attention red (Write-LogError, still shown at theQuietlog level), skipped yellow (Write-LogStep -Style Warning). The totals counts use the same colors.Under a repository's line,
-Quietlists its stashes in white:* Stashes =>one tab in, eachgit stash listentry two tabs in, then a blank line before the next repository. Only a folder that is the top of its own repository is asked (git rev-parse --show-cdup). Repositories that are not cloned, not configured or not a repository are skipped.Format-RepositoryUpdateResult, the line text and the buckets are unchanged. Without-Quietnothing changes.=> [MyRepo] master - updated
=> [OtherRepo] master - up to date
=> Repositories => 1 updated, 1 up to date, 0 need attention, 0 skipped
Type of change
### Deprecatedchangelog entry with the migration, and a record in theDeprecatedmap ofModules/Tests/ContractBaseline.jsonwith the version it ships in, see VERSIONING.md)Quality bar
Configuration.psd1using placeholder paths ({Dev},{User},{MachineType},{RepoRoot},{AppData}).Tests
Both pass.
Windows/PowerShell/Modules/Tests/Modules/<Module>/.Run-Tests) and thePester Testscheck is green.Documentation & manifests
docs/modules/<Module>.mdfor any added/renamed/removed/changed function..psd1FunctionsToExport.docs/configuration/guides/<module>/for every added/renamed/removed function or changedConfiguration.psd1key (stub upgraded to full if the function now reads configuration), and its moduleREADME.mdindex.docs/docs_overview.md(anddocs/_sidebar.mdif a page was added/removed).List-Functions -ListDiscrepanciesreports no discrepancies and manifest completeness holds.No function, parameter or configuration key was added, renamed or removed, so the manifest, guides and overview need no change.
Tested on
Windows version: Windows 11 Pro 26H2 (Version 10.0.26300 Build 26300)
PowerShell version: 7.6.9
Machine type(s): PC via a private fork
Checklist
master.Additional notes / screenshots
The Foundation port lands in IvanPavlak/Foundation under the same branch name.