PerlAppResource.WithPackage
Method
type PerlAppResource interface { // ... omitted for brevity WithPackage( packageName string, options ...*WithPackageOptions, ) PerlAppResource}Signature
method
WithPackage builderAdds a Perl package (module) to be installed before the application starts. Uses the configured package manager: cpan by default, or cpanm if
WithCpanMinus was called.WithPackage( packageName string, options ...*WithPackageOptions,) PerlAppResourceParameters
packageName stringThe name of the Perl module to install (e.g., "Mojolicious", "DBI").options...*WithPackageOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithPackageOptions argument.
Force*boolIf true, force installation even if the module is already installed or tests fail.SkipTest *boolIf true, skip running tests during installation.Returns
PerlAppResource A reference to the I.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: