This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Wait-LogLine | |
| { | |
| <# | |
| .SYNOPSIS | |
| Waits for lines in log files matching a pattern. | |
| .DESCRIPTION | |
| This command blocks, reading a file until a line appears that matches a pattern. If the | |
| line matches the pattern, the entire line is written to the output stream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 5 | |
| <# | |
| .SYNOPSIS | |
| High Performance Powershell Module Installation | |
| .DESCRIPTION | |
| This is a proof of concept for using the Powershell Gallery OData API and HTTPClient to parallel install packages | |
| It is also a demonstration of using async tasks in powershell appropriately. Who says powershell can't be fast? | |
| This drastically reduces the bandwidth/load against Powershell Gallery by only requesting the required data | |
| It also handles dependencies (via Nuget), checks for existing packages, and caches already downloaded packages |
OlderNewer