Undo ps1 changes

This commit is contained in:
Поляков Игорь 2019-08-01 18:00:42 +03:00
parent cb6a91b705
commit 6322bb124f
1 changed files with 2 additions and 2 deletions

View File

@ -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