Skip to content

Get SamplerModuleInfo

gaelcolas edited this page Jul 18, 2024 · 1 revision

Get-SamplerModuleInfo

SYNOPSIS

Loads the PowerShell data file of a module manifest.

SYNTAX

Get-SamplerModuleInfo [-ModuleManifestPath] <String> [<CommonParameters>]

DESCRIPTION

This function loads a psd1 (usually a module manifest), and return the hashtable. This implementation works around the issue where Windows PowerShell version have issues with the pwsh $Env:PSModulePath such as in vscode with the vscode powershell extension.

EXAMPLES

EXAMPLE 1

Get-SamplerModuleInfo -ModuleManifestPath C:\src\MyProject\output\MyProject\MyProject.psd1

PARAMETERS

-ModuleManifestPath

Path to the ModuleManifest to load. This will not use Import-Module because the module may not be finished building, and might be missing some information to make it a valid module manifest.

Type: String
Parameter Sets: (All)
Aliases: Path

Required: True
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

System.Collections.Hashtable

NOTES

RELATED LINKS

Clone this wiki locally