File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11Function Test-FunctionTest {
2- <#
2+ <#
33 . SYNOPSIS
44 Describe the function here
55
Original file line number Diff line number Diff line change 1+ Function Test-VariableScope {
2+ <#
3+ . SYNOPSIS
4+ Describe the function here
5+
6+ . DESCRIPTION
7+ Describe the function in more detail
8+
9+ . EXAMPLE
10+ Give an example of how to use it
11+
12+ #>
13+
14+ Write-Output " Function Test"
15+ Write-Output " Module variable 1 is: $Script :TestModuleVar1 "
16+ Write-Output " Module variable 2 is: $Script :TestModuleVar2 "
17+ }
Original file line number Diff line number Diff line change @@ -42,3 +42,6 @@ Foreach ($Import in @($Functions + $Helpers))
4242}
4343
4444Export-ModuleMember - Function $Functions.Basename
45+
46+ $Script :TestModuleVar1 = " This is a module variable"
47+ $Script :TestModuleVar2 = " This is another module variable"
You can’t perform that action at this time.
0 commit comments