Download PowerShell-master/test/tools/TestAlc/root/RootCommand.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 718 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/tools/TestAlc/root/RootCommand.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/tools/TestAlc/root/RootCommand.cs
-
curl -L -o RootCommand.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/tools/TestAlc/root/RootCommand.cs
718 Bytes
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Management.Automation; | |
| namespace Test.Isolated.Root | |
| { | |
| [] | |
| public class TestRootCommand : PSCmdlet | |
| { | |
| [] | |
| public Red Param { get; set; } | |
| protected override void ProcessRecord() | |
| { | |
| WriteObject(Param.Name); | |
| } | |
| } | |
| public class Red | |
| { | |
| public string Name { get; } | |
| public Red(string name) | |
| { | |
| Name = name; | |
| } | |
| } | |
| public class Yellow | |
| { | |
| public string Id { get; } | |
| public Yellow(string id) | |
| { | |
| Id = id; | |
| } | |
| } | |
| } | |