Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Oct 12, 2025

  • InvokeCommand - Add Invoke-MyCommand to capture InvokeHelpers calls.
  • Logging (Improve)
  • Transcript (Improve)
  • Dependencies (Fix)


function Stop-MyTranscript {
Stop-Transcript

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
$lastLine = $i[2] - 1

$retlist = $transcriptContent[$firstLine..$lastLine]

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
Write-MyHost -Message "This is a test transcript."
Write-Host -Message "This is a second test transcript."
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
$module = $result | where-object {$_.GetType().Name -eq "PSCustomObject"}
Assert-AreEqual -Expected $name -Presented $module.Name
Assert-AreEqual -Expected $name -Presented $result.Name
Assert-Contains -Presented $tt -Expected "Module [$Name] imported from own module"

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
param(
[Parameter(ValueFromPipeline)][string]$Color,
[Parameter(ValueFromPipeline, Position=0)][string]$Message,
[Parameter(ValueFromPipeline, Position = 0)][string]$Message,

Check warning

Code scanning / PSScriptAnalyzer

Command accepts pipeline input but has not defined a process block. Warning

Command accepts pipeline input but has not defined a process block.
$trace = ($flag -like '*all*') -or ( $section -like "*$flag*")
return $trace
}

Check warning

Code scanning / PSScriptAnalyzer

Function 'Set-ModuleNameVerbose' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Set-ModuleNameVerbose' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
$trace = ($flag -like '*all*') -or ( $section -like "*$flag*")
return $trace
}

Check warning

Code scanning / PSScriptAnalyzer

Function 'Set-ModuleNameDebug' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Set-ModuleNameDebug' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.

if ($null -eq $Object) {
return "null"
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace

if ($Object -is [string]) {
return $Object
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@rulasg rulasg merged commit 800442b into main Oct 12, 2025
3 checks passed
@rulasg rulasg deleted the invoke-mycommand branch October 12, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants