Table of Contents

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

IReadOnlyList<string?>

ConfigFile

An explicit NuGet configuration file.

public string? ConfigFile { get; init; }

Property Value

string?

ExactMatch

Whether the package ID must exactly match the search term.

public bool ExactMatch { get; init; }

Property Value

bool

Interactive

Whether authentication may prompt interactively.

public bool Interactive { get; init; }

Property Value

bool

Prerelease

Whether prerelease packages are included.

public bool Prerelease { get; init; }

Property Value

bool

SearchTerm

The package search term.

public string? SearchTerm { get; init; }

Property Value

string?

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

IReadOnlyList<string>

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

string?

Methods

ReadResult(ExecResult)

Converts a successful raw process result to the command's semantic result.

protected override DotNetPackageSearchResult ReadResult(ExecResult result)

Parameters

result ExecResult

Returns

DotNetPackageSearchResult