Table of Contents

Class TigerCliValidationResult

Namespace
ItTiger.TigerCli.Commands
Assembly
ItTiger.TigerCli.dll
Result of Validate(): either success or a failure carrying a user-facing error message. Created only through Success() and Error(string).
public sealed class TigerCliValidationResult
Inheritance
TigerCliValidationResult
Inherited Members

Properties

ErrorMessage

The user-facing failure message; null on success. The framework renders it as literal text (markup-escaped) inside its error line.
public string? ErrorMessage { get; }

Property Value

string

IsValid

Whether validation passed. When false, ErrorMessage is set.
public bool IsValid { get; }

Property Value

bool

Methods

Error(string)

Creates a failing result with the given user-facing message. The run ends with the ValidationError exit mapping.
public static TigerCliValidationResult Error(string message)

Parameters

message string

Returns

TigerCliValidationResult

Success()

Creates a passing result.
public static TigerCliValidationResult Success()

Returns

TigerCliValidationResult