withRequiredCommandValidation
Method
interface ContainerResource { // ... omitted for brevity withRequiredCommandValidation( command: string, validationCallback: callback, helpLink?: string): IResource;}Signature
method
withRequiredCommandValidation builderDeclares that a resource requires a specific command/executable to be available on the local machine PATH before it can start, with custom validation logic.
withRequiredCommandValidation(command: string, validationCallback: (arg: RequiredCommandValidationContext) => Promise<RequiredCommandValidationResult>, helpLink?: string): IResourceParameters
commandstringThe command string (file name or path) that should be validated.validationCallback (arg: RequiredCommandValidationContext) => Promise<RequiredCommandValidationResult> A callback that validates the resolved command path. Receives a `RequiredCommandValidationContext` and returns a `RequiredCommandValidationResult`.helpLink stringoptionalAn optional help link URL to guide users when the command is missing or fails validation.Returns
IResource Applies to
This method applies to the following types: