Skip to content

Commit 53b5c1c

Browse files
feat: Steps can include optional message footer
1 parent 0da24a3 commit 53b5c1c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

guided-setup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'guided-setup'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.17.0'
15+
ModuleVersion = '1.18.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = @('Core')

guided-setup.psm1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,12 @@ class GuidedSetupStep : GraphVertex {
908908

909909
Write-HostSection $this.title ($this.GetMessage())
910910

911+
$footer = $this.GetMessageFooter()
912+
if ("" -ne $footer) {
913+
Write-Host $footer
914+
Write-Host
915+
}
916+
911917
while ($true) {
912918
$question = $this.MakeQuestion($this.prompt)
913919
$question.Prompt()
@@ -935,6 +941,10 @@ class GuidedSetupStep : GraphVertex {
935941
return $this.message
936942
}
937943

944+
[string]GetMessageFooter() {
945+
return ""
946+
}
947+
938948
[void]Reset() {
939949

940950
}

0 commit comments

Comments
 (0)