Cmdlets/src/XpandPwsh.Cmdlets/GitHub/GetGitHubClient/Get-GitHubClient.cs
using System.Management.Automation;
using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using System.Threading.Tasks; using JetBrains.Annotations; namespace XpandPwsh.Cmdlets.GitHub.GetGitHubClient{ [CmdletBinding] [Cmdlet(VerbsCommon.Get, "GitHubClient")] [PublicAPI][CmdLetTag(CmdLetTag.GitHub,CmdLetTag.Reactive,CmdLetTag.RX)] public class GetGitHubClient : GitHubCmdlet{ protected override Task ProcessRecordAsync(){ return Observable.Return(GitHubClient) .WriteObject(this) .ToTask(); } } } |