Struct Param<T>
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
A task parameter guaranteed to resolve from configuration or its default value.
public readonly record struct Param<T> : IEquatable<Param<T>> where T : notnullType Parameters
T
Properties
Description
Human-readable help text supplied by the task author.
public string? Description { get; }Property Value
Name
The configuration key used to resolve this parameter.
public string Name { get; }Property Value
Value
The resolved parameter value.
public T Value { get; }Property Value
- T
Methods
QuotedArgument()
Renders the resolved value as one quoted command-line argument.
public string QuotedArgument()Returns
Operators
implicit operator T(Param<T>)
The resolved parameter value.
public static implicit operator T(Param<T> parameter)Parameters
parameterParam<T>-
The resolved parameter wrapper.
Returns
- T