Skip to content

Commit 8a7aa7c

Browse files
authored
Merge pull request #173 from stiwicourage/develop
Improve release workflows and update dependencies for prerelease
2 parents 74b2be7 + a560397 commit 8a7aa7c

12 files changed

Lines changed: 64 additions & 28 deletions

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### Changed
1414

15+
- Make prerelease self-update confirmation default to `No`.
16+
- `Update-NovaModuleTool`, `Update-NovaModuleTools`, and `% nova update` now require an explicit `Y` before a
17+
prerelease self-update continues, so pressing Enter cancels the update instead of accepting it.
18+
- Render bold text in white across the hosted HTML documentation.
19+
- Emphasized `<strong>` and `<b>` text now stands out more clearly when scanning docs pages.
20+
1521
### Deprecated
1622

1723
### Removed
@@ -358,4 +364,3 @@ Keep stable `Update-NovaModuleVersion` / `% nova bump` releases on the SemVer ma
358364
[0.0.6]: https://github.com/stiwicourage/NovaModuleTools/compare/Version_0.0.5...Version_0.0.6
359365
[0.0.5]: https://github.com/stiwicourage/NovaModuleTools/compare/Version_0.0.4...Version_0.0.5
360366
[0.0.4]: https://github.com/stiwicourage/NovaModuleTools/compare/Version_0.0.3...Version_0.0.4
361-

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ Update notification preferences use one shared settings location:
110110
`Update-NovaModuleTool` (and its `Update-NovaModuleTools` alias), CLI:`% nova update` use that stored prerelease
111111
preference to decide whether prerelease self-updates are eligible. When prerelease self-updates are disabled,
112112
self-update stays on stable releases. When they are enabled, self-update may target a prerelease, but it asks for
113-
explicit confirmation before proceeding.
113+
explicit confirmation before proceeding and defaults that prerelease prompt to `No`, so pressing Enter cancels the
114+
update.
114115

115116

116117
Successful `Update-NovaModuleTool`, CLI:`% nova update`, and `Install-NovaCli` runs print the release notes link from

docs/NovaModuleTools/en-US/Get-NovaUpdateNotificationPreference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ eligible.
8181
Use `Set-NovaUpdateNotificationPreference -EnablePrereleaseNotifications` to allow prerelease self-updates again.
8282

8383
When prerelease notifications are enabled again, `Update-NovaModuleTool` / `Update-NovaModuleTools` may again select a
84-
prerelease target. Prerelease self-updates still require explicit confirmation before the update proceeds.
84+
prerelease target. Prerelease self-updates still require explicit confirmation before the update proceeds, and that
85+
confirmation defaults to `No` so pressing Enter cancels the update.
8586

8687
## RELATED LINKS
8788

docs/NovaModuleTools/en-US/NovaModuleTools.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Runs the project's Pester test workflow using settings from `project.json`.
6262
### `PS> Update-NovaModuleTool`
6363

6464
Updates the installed `NovaModuleTools` module by using the stored prerelease preference that also controls whether
65-
prerelease self-updates are eligible. The compatibility alias `Update-NovaModuleTools` is also available.
65+
prerelease self-updates are eligible. Prerelease confirmations default to `No`, so pressing Enter cancels the
66+
update. The compatibility alias `Update-NovaModuleTools` is also available.
6667

6768
### `PS> Initialize-NovaModule`
6869

docs/NovaModuleTools/en-US/Update-NovaModuleTools.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ When prerelease notifications are disabled, `Update-NovaModuleTool` only conside
3737
`-AllowPrerelease` to the update flow.
3838

3939
When prerelease notifications are enabled, `Update-NovaModuleTool` may target a prerelease. If the selected target is a
40-
prerelease, the command always asks for explicit confirmation before it proceeds.
40+
prerelease, the command always asks for explicit confirmation before it proceeds, and that prerelease confirmation
41+
defaults to `No` so pressing Enter cancels the update.
4142

4243
Stable updates do not require prerelease confirmation.
4344

docs/assets/site.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--panel: rgba(255, 255, 255, 0.08);
55
--panel-strong: rgba(255, 255, 255, 0.12);
66
--text: #eef3ff;
7+
--text-strong: #ffffff;
78
--muted: #b8c3df;
89
--accent: #6ee7b7;
910
--accent-strong: #22c55e;
@@ -44,6 +45,11 @@ a {
4445
color: inherit;
4546
}
4647

48+
strong,
49+
b {
50+
color: var(--text-strong);
51+
}
52+
4753
.site-header {
4854
position: sticky;
4955
top: 0;
@@ -749,7 +755,7 @@ td {
749755
.notice strong {
750756
display: block;
751757
margin-bottom: 0.35rem;
752-
color: var(--text);
758+
color: var(--text-strong);
753759
}
754760

755761
.notice p {

docs/versioning-and-updates.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ <h3>What self-update does</h3>
281281
<tr>
282282
<td>Only prerelease update available and prerelease eligibility is enabled</td>
283283
<td>Nova may target the prerelease, but it always asks for explicit confirmation before
284-
updating.
284+
updating, and that prompt defaults to No so pressing Enter cancels the update.
285285
</td>
286286
</tr>
287287
<tr>

project.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ProjectName": "NovaModuleTools",
33
"Description": "NovaModuleTools is an enterprise-focused evolution of ModuleTools, designed for large-scale PowerShell projects with a strong emphasis on structure, maintainability, and automated CI/CD pipelines.",
4-
"Version": "2.2.0",
4+
"Version": "2.2.1-preview",
55
"Preamble": [
66
"Set-StrictMode -Version Latest",
77
"$ErrorActionPreference = 'Stop'"
@@ -12,6 +12,10 @@
1212
"PowerShellHostVersion": "7.4",
1313
"GUID": "6b9202c8-0353-473b-b73c-afab632125a6",
1414
"RequiredModules": [
15+
{
16+
"ModuleName": "Pester",
17+
"ModuleVersion": "5.7.1"
18+
},
1519
{
1620
"ModuleName": "Microsoft.PowerShell.PlatyPS",
1721
"ModuleVersion": "1.0.1"

src/private/update/ConfirmNovaPrereleaseModuleUpdate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ function Confirm-NovaPrereleaseModuleUpdate {
77
)
88

99
$prompt = Get-NovaPrereleaseModuleUpdateConfirmationPrompt -CurrentVersion $CurrentVersion -TargetVersion $TargetVersion
10-
return $Cmdlet.ShouldContinue($prompt.Message, $prompt.Caption)
10+
return (Read-AwesomeChoicePrompt -Ask $prompt -HostUi $Cmdlet.Host.UI) -eq 'Y'
1111
}

src/private/update/GetNovaPrereleaseModuleUpdateConfirmationPrompt.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ NovaModuleTools would update from $CurrentVersion to prerelease $TargetVersion.
1313
Prerelease updates may be less stable than released versions.
1414
Continue with the prerelease update?
1515
"@
16+
Choice = [ordered]@{
17+
Y = 'Yes'
18+
N = 'No'
19+
}
20+
Default = 'N'
1621
}
1722
}

0 commit comments

Comments
 (0)