| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Gets module manifest information from a project directory.
Get-ModuleInformation -Path <string> [<CommonParameters>]This is a lightweight helper used by build/publish commands. It finds the module manifest (*.psd1) under -Path and returns a structured object containing common fields such as module name, version, required modules, and the manifest path.
Use it in build scripts to avoid re-implementing manifest discovery logic.
PS> Get-ModuleInformation -Path 'C:\Git\MyModule\Module'Returns the parsed manifest and convenience properties such as module name and version.
PS> $moduleInfo = Get-ModuleInformation -Path $PSScriptRoot; $moduleInfo.ManifestPathLoads the manifest from the folder where the build script resides.
The path to the directory containing the module manifest file.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
None
System.Object
- None