Skip to content

Commit b030d38

Browse files
committed
Refreshing
1 parent c92b9fb commit b030d38

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

TestingModule/Functions/Test-FunctionTest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Function Test-FunctionTest {
2-
<#
2+
<#
33
.SYNOPSIS
44
Describe the function here
55
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

TestingModule/TestingModule.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ Foreach ($Import in @($Functions + $Helpers))
4242
}
4343

4444
Export-ModuleMember -Function $Functions.Basename
45+
46+
$Script:TestModuleVar1 = "This is a module variable"
47+
$Script:TestModuleVar2 = "This is another module variable"

0 commit comments

Comments
 (0)