Class DotNetPackageSearch
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Searches configured NuGet package sources and returns structured JSON results.
public sealed record DotNetPackageSearch : ToolCommand<DotNetPackageSearchResult>, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<DotNetPackageSearchResult>>, IEquatable<DotNetPackageSearch>Inheritance
Implements
Properties
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
ConfigFile
An explicit NuGet configuration file.
public string? ConfigFile { get; init; }Property Value
ExactMatch
Whether the package ID must exactly match the search term.
public bool ExactMatch { get; init; }Property Value
Interactive
Whether authentication may prompt interactively.
public bool Interactive { get; init; }Property Value
Prerelease
Whether prerelease packages are included.
public bool Prerelease { get; init; }Property Value
SearchTerm
The package search term.
public string? SearchTerm { get; init; }Property Value
Skip
The number of packages skipped by each source.
public int? Skip { get; init; }Property Value
- int?
Sources
Package sources to search instead of the configured sources.
public IReadOnlyList<string> Sources { get; init; }Property Value
Take
The maximum number of packages returned by each source.
public int? Take { get; init; }Property Value
- int?
Verbosity
The command logging verbosity.
public string? Verbosity { get; init; }Property Value
Methods
ReadResult(ExecResult)
Converts a successful raw process result to the command's semantic result.
protected override DotNetPackageSearchResult ReadResult(ExecResult result)Parameters
resultExecResult