Class TokensArgumentsProcessor
- Namespace
- Ploch.CommandLine.Spectre.Commands
- Assembly
- Ploch.CommandLine.Spectre.dll
Substitutes date and time tokens into string command settings properties marked with
SupportsTokensAttribute.
Recognised tokens are {date} and {datetime}, and both resolve in UTC, not local time.
public class TokensArgumentsProcessor : CommandSettingsPropertyTypeProcessor<string>, ICommandSettingsProcessor
- Inheritance
-
TokensArgumentsProcessor
- Implements
- Inherited Members
Properties
- RequiredAttributes
Gets the attributes a property must carry to be processed — SupportsTokensAttribute.
Methods
- DoProcessArguments()
Replaces every recognised
{token}placeholder in the matched properties with its current value, using the path-safe value when the property's PathSafe is set.