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
# The prefix is either the path to a file (relative to the module folder) or text to put at the top of the file.
120
120
# If the value of prefix resolves to a file, that file will be read in, otherwise, the value will be used.
@@ -124,7 +124,7 @@ function Build-Module {
124
124
# The Suffix is either the path to a file (relative to the module folder) or text to put at the bottom of the file.
125
125
# If the value of Suffix resolves to a file, that file will be read in, otherwise, the value will be used.
126
126
# The default is nothing. See examples for more details.
127
-
[Alias("ExportModuleMember","Postfix")]
127
+
[Alias("ExportModuleMember","Postfix")]
128
128
[string]$Suffix,
129
129
130
130
# Controls whether we delete the output folder and whether we build the output
@@ -137,6 +137,17 @@ function Build-Module {
137
137
[ValidateSet("Clean","Build","CleanBuild")]
138
138
[string]$Target="CleanBuild",
139
139
140
+
# A list of Generators to apply to the module. You can specify an array of hashtables where each hashtable has the Generator name, and any additional parameters that the generator requires.
141
+
#
142
+
# There are two built-in Generators so far:
143
+
# - Add-Parameter. Adds parameters to functions in the module from a boilerplate file, which must be a script with a param block.
144
+
# - Merge-ScriptBlock. Merges boilerplate templates into functions in your module. The command "Use-OriginalBlock" in the boilerplate indicates where the code from the original function would fit into the template. The added blocks come from a boilerplate tempalte file, which must be a script, and can have named begin, process, and end blocks.
145
+
[PSCustomObject[]]$Generators=@(),
146
+
147
+
# The folder (relative to the module folder) which contains the scripts which serve as boilerplate templates for Script Generators
0 commit comments