Skip to content

Instantly share code, notes, and snippets.

@guitarrapc guitarrapc/TestModule.cs
Last active Dec 25, 2015

Embed
What would you like to do?
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);
}
}
@guitarrapc

This comment has been minimized.

Copy link
Owner Author

guitarrapc commented Dec 25, 2015

animation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.