PowerShell / SHiPS

Simple Hierarchy in PowerShell - developing PowerShell provider got so much easier
MIT License
185 stars 31 forks source link

Fix README: `-root FileSystem#C` does not exist #118

Closed matt9ucci closed 5 years ago

matt9ucci commented 5 years ago

The following command in FileSystem/README.md throws the error:

PS> new-psdrive -name FS -psprovider SHiPS -root FileSystem#C
New-PSDrive : Cannot create an instance of type 'C' in the module 'C:\Users\matt9ucci\SHiPS\samples\FileSystem\FileSystem.psm1'.
Make sure type 'C' exists, inherits from Microsoft.PowerShell.SHiPS.SHiPSDirectory, and Name is set in constructors.
As a root, a constructor 'C([string]$name)'  is required.
Fix the script and try again.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [New-PSDrive], InvalidOperationException
+ FullyQualifiedErrorId : CannotCreateInstance,Microsoft.PowerShell.Commands.NewPSDriveCommand

The C should be replaced with Home that exists in FileSystem.psm1.