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
Improve instructions in step 4 of "Create and populate the PowerShell module and module manifest"
# "Take following" should be "The following"
# Step 4 should also explicitly instruct the reader to export the Get-Hello Function she created in step 1.
Copy file name to clipboardExpand all lines: docs/artifacts/tutorials/private-powershell-library.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,9 @@ Create a folder named `Get-Hello`. Within that folder create a `Get-Hello.psm1`
118
118
RootModule = 'Get-Hello.psm1'
119
119
```
120
120
121
-
4. The `FunctionsToExport = @()` section is meant to define the module's exported functions. This is simply a list of all exported functions. Take following is an example from `PowerShellGet.psd1`:
121
+
4. The `FunctionsToExport = @()` section is meant to define the module's exported functions. This is simply a list of all exported functions. The following is an example from `PowerShellGet.psd1`:
122
+
123
+
122
124
123
125
```powershell
124
126
FunctionsToExport = @('Install-Module',
@@ -148,6 +150,9 @@ Create a folder named `Get-Hello`. Within that folder create a `Get-Hello.psm1`
148
150
'Update-ModuleManifest')
149
151
```
150
152
153
+
> [!TIP]
154
+
> your module manifest should export the `Get-Hello` function you created in Step 1
155
+
151
156
5. It is also possible to define a list of files as part of your module. Just add this list under `FileList=@()`.
152
157
153
158
```powershell
@@ -288,4 +293,4 @@ We now have our private PowerShell repository to publish and download our packag
288
293
289
294
## Credit
290
295
291
-
Credit to this [article on Medium](https://medium.com/@jsrice7391/using-vsts-for-your-companys-private-powershell-library-e333b15d58c8) that was used as a source for this tutorial.
296
+
Credit to this [article on Medium](https://medium.com/@jsrice7391/using-vsts-for-your-companys-private-powershell-library-e333b15d58c8) that was used as a source for this tutorial.
0 commit comments