24 lines
No EOL
630 B
PowerShell
24 lines
No EOL
630 B
PowerShell
param (
|
|
[string]$path,
|
|
[string]$guid,
|
|
[string]$author,
|
|
[string[]]$nestedModules,
|
|
[string]$rootModule,
|
|
[string[]]$cmdletsToExport,
|
|
[string]$manifestFileLocation
|
|
)
|
|
|
|
$manifestSplat = @{
|
|
Path = "$path"
|
|
GUID = "$guid"
|
|
Author = "$author"
|
|
NestedModules = @($nestedModules)
|
|
RootModule = "$rootModule"
|
|
CmdletsToExport = @($cmdletsToExport)
|
|
FunctionsToExport = @()
|
|
VariablesToExport = @()
|
|
AliasesToExport = @()
|
|
}
|
|
|
|
New-ModuleManifest @manifestSplat
|
|
New-Item "$manifestFileLocation" -ItemType File -Value "# This file is run when Import-Module `"PowershellModule`" is called" |