Skip to content

Instantly share code, notes, and snippets.

@crmckenzie
crmckenzie / Watch.ps1
Last active August 18, 2017 23:01
Pester-Watch
param([switch] $Start)
function New-FileSystemWatcher(
[Parameter(Mandatory)][ValidateNotNullOrEmpty()] [string] $TargetFile,
[Parameter(Mandatory)][ValidateNotNull()] [ScriptBlock] $Action
) {
$fullPath = Resolve-Path $TargetFile
$fsw= New-Object System.IO.FileSystemWatcher
$fsw.Path = (Split-Path $fullPath -Parent)
/*
cargo.toml
[dependencies]
actix = "0.9.0"
actix-rt = "1.0.0"
actix-web = { version="2.0.0", features=["openssl"] }
actix-service = "1.0.5"
env_logger = "0.6.1"
bytes = "0.5.4"