Table of Contents

Constructor TokenInfo

Namespace
Ploch.CommandLine.Spectre.Commands
Assembly
Ploch.CommandLine.Spectre.dll

TokenInfo(string, Func<string>, Func<string>)

Describes a replaceable token that can be substituted into command argument values.

public TokenInfo(string TokenName, Func<string> ValueProvider, Func<string> PathSafeValueProvider)

Parameters

TokenName string

The name of the token, without delimiters.

ValueProvider Func<string>

Supplies the token's value for general substitution.

PathSafeValueProvider Func<string>

Supplies the token's value sanitised for use within a file system path.