You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📝 [docs] Regenerate and enhance PlatyPS help documentation
This commit overhauls the module's help documentation by regenerating all markdown files using a newer version of PlatyPS. It also introduces a new build script for managing and publishing help content.
📝 [docs] **Help File Regeneration**
- Updates all cmdlet markdown help files (`.md`) to a new, more detailed PlatyPS schema (`2024-05-01`).
- Enriches parameter documentation with full YAML definitions, including type, default values, parameter sets, and positions.
- Adds `HelpUri` to the frontmatter of each help file, pointing to the project's GitHub repository for better discoverability.
- Updates the module manifest (`.psd1`) to point `HelpInfoURI` to a new GitHub Pages site, enabling updatable help via `Update-Help`.
🔧 [build] **New Help Build Process**
- Introduces a new `Build-Help.ps1` script to automate the generation of MAML XML files from the updated markdown.
- The script now runs PlatyPS cmdlets in an isolated PowerShell process to ensure compatibility and avoid module conflicts.
- Adds logic to publish help content to the `docs` directory for GitHub Pages deployment.
🎨 [style] **Minor Code Formatting**
- Adjusts brace style in a `foreach` loop within `Show-ColorScript` for consistency. This is a non-functional, cosmetic change.
Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>
Adds a startup snippet to the specified PowerShell profile file. The snippet always imports the ColorScripts-Enhanced module and, unless suppressed, adds a call to `Show-ColorScript` so that a random colorscript is displayed on launch. The profile file is created if it does not already exist, and duplicate imports are avoided unless `-Force` is specified.
@@ -67,105 +80,150 @@ Appends the snippet to a custom profile path (resolved from `~`), even if the im
67
80
68
81
## PARAMETERS
69
82
70
-
### -Force
83
+
### -Confirm
71
84
72
-
Append the snippet even if the profile already contains an `Import-Module ColorScripts-Enhanced` line.
85
+
Prompts you for confirmation before running the cmdlet.
Explicit profile path to update. Overrides `-Scope` when provided. Supports environment variables, relative paths, and `~` expansion.
129
+
Explicit profile path to update.
130
+
Overrides `-Scope` when provided.
131
+
Supports environment variables, relative paths, and `~` expansion.
89
132
90
133
```yaml
91
-
Type: String
92
-
Parameter Sets: Path
93
-
Aliases:
94
-
95
-
Required: False
96
-
Position: Named
97
-
Default value: None
98
-
Accept pipeline input: False
99
-
Accept wildcard characters: False
134
+
Type: System.String
135
+
DefaultValue: None
136
+
SupportsWildcards: false
137
+
Aliases: []
138
+
ParameterSets:
139
+
- Name: (All)
140
+
Position: 1
141
+
IsRequired: false
142
+
ValueFromPipeline: false
143
+
ValueFromPipelineByPropertyName: false
144
+
ValueFromRemainingArguments: false
145
+
DontShow: false
146
+
AcceptedValues: []
147
+
HelpMessage: ''
100
148
```
101
149
102
150
### -Scope
103
151
104
152
Profile scope to update when `-Path` is not supplied. Accepts PowerShell's standard profile properties (e.g., `CurrentUserAllHosts`, `CurrentUserCurrentHost`). Defaults to `CurrentUserAllHosts`.
153
+
Profile scope to update when `-Path` is not supplied.
154
+
Accepts PowerShell's standard profile properties (e.g., `CurrentUserAllHosts`, `CurrentUserCurrentHost`).
155
+
Defaults to `CurrentUserAllHosts`.
105
156
106
157
```yaml
107
-
Type: String
108
-
Parameter Sets: Scope
109
-
Aliases:
110
-
111
-
Required: False
112
-
Position: Named
113
-
Default value: CurrentUserAllHosts
114
-
Accept pipeline input: False
115
-
Accept wildcard characters: False
158
+
Type: System.String
159
+
DefaultValue: CurrentUserAllHosts
160
+
SupportsWildcards: false
161
+
Aliases: []
162
+
ParameterSets:
163
+
- Name: (All)
164
+
Position: 0
165
+
IsRequired: false
166
+
ValueFromPipeline: false
167
+
ValueFromPipelineByPropertyName: false
168
+
ValueFromRemainingArguments: false
169
+
DontShow: false
170
+
AcceptedValues: []
171
+
HelpMessage: ''
116
172
```
117
173
118
174
### -SkipStartupScript
119
175
120
176
Skip adding `Show-ColorScript` to the profile. Only the import line is appended.
177
+
Skip adding `Show-ColorScript` to the profile.
178
+
Only the import line is appended.
121
179
122
180
```yaml
123
-
Type: SwitchParameter
124
-
Parameter Sets: (All)
125
-
Aliases:
126
-
127
-
Required: False
128
-
Position: Named
129
-
Default value: False
130
-
Accept pipeline input: False
131
-
Accept wildcard characters: False
132
-
```
133
-
134
-
### -Confirm
135
-
136
-
Prompts you for confirmation before running the cmdlet.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
223
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
0 commit comments