Last active
December 25, 2015 15:08
-
-
Save guitarrapc/fdf9ad919bef1960e264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Management.Automation; | |
namespace TestModule | |
{ | |
[CmdletBinding()] | |
[Cmdlet(VerbsCommon.Get, "Hoge")] | |
public class GetHoge : PSCmdlet | |
{ | |
[Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true)] | |
public string Name { get; set; } = "Hoge"; | |
protected override void ProcessRecord() => this.WriteObject(this.Name); | |
} | |
} |
Author
guitarrapc
commented
Dec 25, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment