WithRunScript
Method
func (JavaScriptAppResource) WithRunScript( scriptName string, options ...*WithRunScriptOptions,) JavaScriptAppResourceSignature
method
WithRunScript builderAdds a run script annotation to the specified JavaScript application resource builder, specifying the script to execute and its arguments during run mode.
WithRunScript( scriptName string, options ...*WithRunScriptOptions,) JavaScriptAppResourceParameters
scriptName stringThe name of the script to be executed when the resource is run.options...*WithRunScriptOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithRunScriptOptions argument.
Args[]string An array of arguments to pass to the script.Returns
JavaScriptAppResource The same resource builder instance with the run script annotation applied, enabling further configuration.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: