Skip to content

Commit b63422e

Browse files
Improve step 4 of "Create .. PowerShell module.."
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.
1 parent f03a59c commit b63422e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/artifacts/tutorials/private-powershell-library.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ Create a folder named `Get-Hello`. Within that folder create a `Get-Hello.psm1`
118118
RootModule = 'Get-Hello.psm1'
119119
```
120120
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+
122124
123125
```powershell
124126
FunctionsToExport = @('Install-Module',
@@ -148,6 +150,9 @@ Create a folder named `Get-Hello`. Within that folder create a `Get-Hello.psm1`
148150
'Update-ModuleManifest')
149151
```
150152
153+
> [!TIP]
154+
> your module manifest should export the `Get-Hello` function you created in Step 1
155+
151156
5. It is also possible to define a list of files as part of your module. Just add this list under `FileList=@()`.
152157
153158
```powershell
@@ -288,4 +293,4 @@ We now have our private PowerShell repository to publish and download our packag
288293
289294
## Credit
290295
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

Comments
 (0)