withRequiredCommandValidation
Method
interface ContainerResource { // ... omitted for brevity withRequiredCommandValidation( command: string, validationCallback: callback, helpLink?: string): IResource;}Signature
method
withRequiredCommandValidationbuilderDeclares 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
commandstringvalidationCallback(arg: RequiredCommandValidationContext) => Promise<RequiredCommandValidationResult>helpLinkstringoptionalReturns
IResourceApplies to
This method applies to the following types: