Skip to content

Commit

Permalink
Update InvokeZtAssessmentCmdlet.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Aug 23, 2023
1 parent 85d2986 commit e3394a4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/powershell/ZeroTrustAssessment/InvokeZtAssessmentCmdlet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public class InvokeZtAssessmentCmdletCommand : PSCmdlet
Position = 0,
ValueFromPipeline = true,
ValueFromPipelineByPropertyName = true)]
public int FavoriteNumber { get; set; }
public string Path { get; set; }

[Parameter(
Mandatory = true,
Position = 1,
ValueFromPipelineByPropertyName = true)]
[ValidateSet("Cat", "Dog", "Horse")]
public string FavoritePet { get; set; } = "Dog";
public string AccessToken { get; set; }

// This method gets called once for each cmdlet in the pipeline when the pipeline starts executing
protected override void BeginProcessing()
Expand All @@ -30,10 +30,7 @@ protected override void BeginProcessing()
// This method will be called for each input received from the pipeline to this cmdlet; if no input is received, this method is not called
protected override void ProcessRecord()
{
WriteObject(new FavoriteStuff {
FavoriteNumber = FavoriteNumber,
FavoritePet = FavoritePet
});
WriteObject("Exporting to ");
}

// This method will be called once at the end of pipeline execution; if no input is received, this method is not called
Expand Down

0 comments on commit e3394a4

Please sign in to comment.