Undo ps1 changes
This commit is contained in:
parent
cb6a91b705
commit
6322bb124f
|
@ -17,7 +17,7 @@ else {
|
|||
$wmiObject = Get-WMIObject -ComputerName $ComputerName -Class $Class
|
||||
}
|
||||
|
||||
$members = @($wmiObject `
|
||||
$members = $wmiObject `
|
||||
| Get-Member -MemberType Properties `
|
||||
| Where-Object { $_.Definition -Match '^u?int' -and $_.Name -NotMatch '_' } `
|
||||
| Select-Object Name, @{Name="Type";Expression={$_.Definition.Split(" ")[0]}}
|
||||
|
@ -25,7 +25,7 @@ $input = @{
|
|||
"Class"=$Class;
|
||||
"CollectorName"=$CollectorName;
|
||||
"Members"=$members
|
||||
} | ConvertTo-Json)
|
||||
} | ConvertTo-Json
|
||||
$outFileName = "..\..\collector\$CollectorName.go".ToLower()
|
||||
$input | .\collector-generator.exe | Out-File -NoClobber -Encoding UTF8 $outFileName
|
||||
go fmt $outFileName
|
||||
|
|
Loading…
Reference in New Issue