How-to
How-to
Task-oriented recipes. Each page solves one concrete problem and assumes the basics from Tutorials .
Parameters and their attributes, the three phases, output, errors, streams, ShouldProcess, cancellation.
Copied, proxy and psobject classes, enums, arrays, hashtables, and when to pick which.
The Provider trait mapped onto NavigationCmdletProvider, with the in-memory filesystem as the worked example.
Tab completion from Rust, arguments changed before the binder coerces them, and parameters that appear depending on what was bound.
Properties, methods, statics, constructors, script blocks, and zero-copy primitive arrays.
stream_from_thread, par_map, the pipeline-thread rule, and cancellation.
Pester in both hosts through cargo pwrs test, the fake host for Rust unit tests, the in-process engine host.
Hand-written C# cmdlets compiled into the same shell assembly.
cargo pwrs publish, the dry run, and the gallery key.
Pipeline input against per-invocation calls, the phase mask, bulk data through a pin, and what each is worth.
AVX2, AVX-512 and the rest on both hosts: run-time dispatch, the import check, and every tier tested on one machine.
One object per stage taken by type, the object’s gate, telling the collector what it holds, and what the rows cost.
A [[bin]] target built with the library, shipped beside it, and started from a copy staged for the process.
Another PWRS module built by the same tool, laid inside this one, imported with it, and carried through publish and merge.
PsEvents from any thread, during the call and after it, read in script by Wait-Event, Get-Event and Register-EngineEvent -Action.
PWRS_TRACE, the counters on both sides, and how to read a line.
Picking up a rebuild in a live session, why nothing is unloaded, and what that costs.
What each failure means, keyed by the text you see; the crate and cargo-pwrs move together.