Skip to content

Commit

Permalink
Allow piping "dir" output into Mount-DbgDumpFile. Related: #66
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzdelightsme committed Feb 6, 2019
1 parent aa0f7aa commit d120007
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions DbgProvider/public/Commands/MountDbgDumpFileCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ namespace MS.Dbg.Commands
[Cmdlet( VerbsData.Mount, "DbgDumpFile" )]
public class MountDbgDumpFileCommand : ExecutionBaseCommand
{
[Parameter( Mandatory = true, Position = 0 , ValueFromPipeline = true )]
[Alias( "z" )] // you know, like ntsd -z :D
// The z alias: you know, like ntsd -z
// The PSPath alias: along with ValueFromPipelineByPropertyName, this lets you get
// the expected results when you pipe in the output of Get-ChildItem
[Parameter( Mandatory = true,
Position = 0,
ValueFromPipeline = true,
ValueFromPipelineByPropertyName = true )]
[Alias( "z", "PSPath" )]
[ValidateNotNullOrEmpty]
public string DumpFile { get; set; }

Expand Down

0 comments on commit d120007

Please sign in to comment.