Skip to main content

Import-ModuleFile

SYNOPSIS

Loads files into the module on module import.

SYNTAX

Import-ModuleFile [[-Path] <String>] [<CommonParameters>]

DESCRIPTION

This helper function is used during module initialization. It should always be dotsourced itself, in order to proper function.

This provides a central location to react to files being imported, if later desired

EXAMPLES

PARAMETERS

-Path

The path to the file to load

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES