Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
get parameters json
  • Loading branch information
MaynardMiner committed Jan 23, 2020
1 parent ab203fd commit a457d05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/powershell/scripts/get.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,11 @@ https://github.com/MaynardMiner/SWARM/wiki/HiveOS-management
}
else { $SwarmParameters += "No Parameters For SWARM found" }
if($argument2 -eq "json") {
$Get += $SwarmParameters | ConvertTo-Json -Depth 5 -Compress
if($argument3 -eq "decompress") {
$Get += $MinerArgs | ConvertTo-Json -Depth 5
} else {
$Get += $MinerArgs | Convertto-Json -Depth 5 -Compress
}
}
else {
$Get += $SwarmParameters
Expand Down

0 comments on commit a457d05

Please sign in to comment.