Class DotnetPackageSearchOptions
- Namespace
- Invex.Atom.Module.Dotnet.Cli
- Assembly
- Invex.Atom.Module.Dotnet.dll
public sealed record DotnetPackageSearchOptions
- Inheritance
-
objectDotnetPackageSearchOptions
Constructors
DotnetPackageSearchOptions()
public DotnetPackageSearchOptions()
Properties
ConfigFile
The NuGet configuration file. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used. For more information, see https://docs.microsoft.com/nuget/consume-packages/configuring-nuget-behavior
public string? ConfigFile { get; init; }
Property Value
- string
ExactMatch
Require that the search term exactly match the name of the package. Causes --take and --skip options to be ignored.
public bool? ExactMatch { get; init; }
Property Value
- bool?
Format
Format the output accordingly. Either table, or json. The default value is table.
public string? Format { get; init; }
Property Value
- string
Interactive
Allows the command to stop and wait for user input or action (for example to complete authentication).
public bool? Interactive { get; init; }
Property Value
- bool?
Prerelease
Include prerelease packages.
public bool? Prerelease { get; init; }
Property Value
- bool?
Skip
Number of results to skip, to allow pagination. Default 0.
public string? Skip { get; init; }
Property Value
- string
Source
The package source to search. You can pass multiple --source options to search multiple package sources. Example: --source https://api.nuget.org/v3/index.json.
public IEnumerable<string>? Source { get; init; }
Property Value
- IEnumerable<string>
Take
Number of results to return. Default 20.
public string? Take { get; init; }
Property Value
- string
Verbosity
Display this amount of details in the output: normal, minimal, detailed. The default is normal
public string? Verbosity { get; init; }
Property Value
- string
Methods
ToArguments()
Converts these options to individual command-line arguments, in schema order.
public IReadOnlyList<string> ToArguments()
Returns
- IReadOnlyList<string>
The arguments. Each option name and each value is a separate element, so values need no quoting.