Skip to content

Commit

Permalink
fix: Exporting additional variables from Splatter ( re #40 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 6, 2024
1 parent 13e4981 commit 31afa86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Splatter.ps.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,10 @@ $myScriptTypeCommands = foreach ($myScriptType in $myModule.Name) {

. ([ScriptBlock]::Create($myScriptTypeCommands -join [Environment]::NewLine))

Export-ModuleMember -Alias * -Function * -Variable $myModule.Name
${?@} = $gSplat = $GetSplat = ${function:Get-Splat}

Check warning on line 51 in Splatter.ps.psm1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSUseDeclaredVarsMoreThanAssignments : The variable '?@' is assigned but never used.

Check warning on line 51 in Splatter.ps.psm1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSUseDeclaredVarsMoreThanAssignments : The variable 'gSplat' is assigned but never used.

Check warning on line 51 in Splatter.ps.psm1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSUseDeclaredVarsMoreThanAssignments : The variable 'GetSplat' is assigned but never used.
${??@} = $fSplat = $FindSplat = ${function:Find-Splat}

Check warning on line 52 in Splatter.ps.psm1

View workflow job for this annotation

GitHub Actions / PowerShellStaticAnalysis

PSUseDeclaredVarsMoreThanAssignments : The variable '??@' is assigned but never used.
${*@} = $mSplat = $MergeSplat = ${function:Merge-Splat}
${.@} = $uSplat = $UseSplat = ${function:Use-Splat}
${=>@} = $uSplat = $OutSplat = ${function:Out-Splat}

Export-ModuleMember -Alias * -Function * -Variable $myModule.Name, '*@', '*Splat'

0 comments on commit 31afa86

Please sign in to comment.