Resource.WithRequiredCommand
Method
func (Resource) WithRequiredCommand( command string, options ...*WithRequiredCommandOptions,) ResourceSignature
method
WithRequiredCommand builderDeclares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.
WithRequiredCommand( command string, options ...*WithRequiredCommandOptions,) ResourceParameters
commandstringThe command string (file name or path) that should be validated.options...*WithRequiredCommandOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithRequiredCommandOptions argument.
HelpLink *stringAn optional help link URL to guide users when the command is missing.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Defined on
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
Applies to
This function applies to the following types: