Skip to content

An Ideal PipeScript Module will import any global requirements first (*.requires.ps1) #534

Open
@StartAutomating

Description

@StartAutomating

This is standardizing the way a module can have "import-time" requirements.

Most modules simply throw whatever initialization they need at the top of the script, which can make the .psm1 a longer monolith.

Most modules also have a fairly limited syntax or scope for requirements, especially conditional ones (see #269)

At the beginning of a module's load, if that module finds any *.requires.ps1 files, it should run them.

These files could install any packages required for the module to run or check that such packages are present.

These files should also be able to define a conditional requirement.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions