RequiredCommandValidationContext
Handle
Provides context for validating a required command.
type RequiredCommandValidationContext interface{}5 members
Properties
property
CancellationToken *CancellationToken getGets a cancellation token that can be used to cancel the validation.
CancellationToken() (*CancellationToken, error)property
ResolvedPath stringgetGets the resolved full path to the command executable.
ResolvedPath() (string, error)property
ServicesServiceProvider getGets the service provider for accessing application services.
Services() ServiceProviderMethods
method
FailureCreates a failed validation result with the specified message.
Failure(validationMessage string) RequiredCommandValidationResultParameters
validationMessage stringA message describing why validation failed.Returns
RequiredCommandValidationResult A Required indicating the command is invalid.
Returns a handle; failures surface later via Err().
method
SuccessCreates a successful validation result.
Success() RequiredCommandValidationResultReturns
RequiredCommandValidationResult A Required indicating the command is valid.
Returns a handle; failures surface later via Err().