-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDiffTwoPythonVersionInfo.ps1
50 lines (36 loc) · 1.04 KB
/
DiffTwoPythonVersionInfo.ps1
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using namespace System.Collections.Generic
function InspectItemVersionInfo {
<#
.synopsis
diff version info on two python items
#>
$SelectedBin = Get-Command python* -CommandType -All | Out-GridView -PassThru
# select which
$cmd = Get-Command python* -CommandType -All | Out-GridView -PassThru
$cmd[0]
| Select-Object -p $Props
| to->Json -Depth 5 -EnumsAsStrings -AsArray
| sc temp:\out1.json
& 'code.cmd' @(
'--diff'
(Get-Item Temp:\out1.json)
(Get-Item Temp:\out2.json)
)
}
$p2 = 'HelpUri', 'FileVersionInfo', 'Version', 'Visibility', 'OutputType', 'CommandType', 'Module', 'RemotingCapability', 'ParameterSets'
return
# class Insect {
# [string]$Name = 'anon'
# [list[Insect]]$Kittens = [list[Insect]]::new()
# }
# class Horde {
# [Insect]$SwarmLeader
# [list[Insect]]$Coven = [list[Insect]]::new()
# }
# . { # InitializeHorde
# $h ??= [Horde]::new()
# 0..4 | ForEach-Object {
# $i = [Insect]::New()
# $h.Coven.Add( $i )
# }
# }