Created
January 11, 2019 10:25
-
-
Save NateLehman/871124c7e3bb1854d0409b295e01aacf 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
namespace MyPSModule | |
open System.Management.Automation | |
[<Cmdlet("Get", "Foo")>] | |
type GetFooCommand () = | |
inherit PSCmdlet () | |
[<Parameter>] | |
member val Name : string = "" with get, set | |
override x.EndProcessing () = | |
x.WriteObject ("Foo is " + x.Name) | |
base.EndProcessing () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment