Class PackageToolCommand<TResult>
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
A command supplied by a .NET local tool package whose await produces a semantic result.
public abstract record PackageToolCommand<TResult> : ToolCommand<TResult>, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<TResult>>, IEquatable<PackageToolCommand<TResult>>Type Parameters
TResult
Inheritance
Implements
Constructors
PackageToolCommand(string, string)
Creates a local package-tool command with its manifest package ID and executable command name.
protected PackageToolCommand(string packageId, string commandName)Parameters
Properties
CommandName
The command exposed by the package tool.
public string CommandName { get; }Property Value
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
PackageId
The package ID expected in the applicable local tool manifest.
public string PackageId { get; }Property Value
Methods
ExecuteCommandAsync()
Executes the rendered command and returns its successful raw process result.
protected override sealed Task<ExecResult> ExecuteCommandAsync()