-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDebugHarness.ps1
More file actions
31 lines (31 loc) · 1.14 KB
/
DebugHarness.ps1
File metadata and controls
31 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$sb = {
param($s)
Push-Location $s
# & .\build.ps1 -Task 'BuildAndTest'
$RepoParent = Split-Path $s -Parent
Import-Module (Join-Path $RepoParent 'PwshSpectreConsole' 'output' 'PwshSpectreConsole.psd1')
Import-Module (Join-Path $RepoParent 'PSTextMate' 'output' 'PSTextMate.psd1')
Import-Module ./output/ISpy.psd1
$up = Get-Command Get-SpyFramework | Show-SpyType -Verbose
"------ Get-SpyFramework ($($up.PSChildName)) ------"
$up | Show-TextMate -Verbose
$m = [math]::Truncate | Show-SpyType -Verbose
"------ Math.Truncate ($($m.PSChildName)) ------"
$m | Show-TextMate -Verbose
function helloworld {
<#
.DESCRIPTION
A simple function that returns "Hello, World!" and a question.
#>
param($noop)
"Hello, World!"
'does this work?'
}
$s = Show-SpyType 'scb'
"------ scb (alias $($s.PSChildName)) ------"
$s
$f = Show-SpyType 'helloworld' -Verbose
"------ helloworld (locally defined function $($f.PSChildName)) ------"
$f | Show-TextMate -Verbose
}
pwsh -NoProfile -Command $sb -Args $PSScriptRoot