Skip to content

Instantly share code, notes, and snippets.

@guitarrapc guitarrapc/buidl.ps1
Created Dec 25, 2015

Embed
What would you like to do?
$currentDir = Split-Path "$PSCommandPath" -Parent;
$private:module = [ordered]@{};
$module.Name = 'TestModule';
$module.Path = Join-Path $currentDir ("{0}.psd1" -f $module.Name);
$module.description = "TestModule Description";
$module.Author = "guitarrapc";
$module.RequiredModules = @();
$module.PowerShellVersion = "3.0";
$module.DotNetFrameworkVersion = "4.5";
$module.RootModule = "{0}.psm1" -f $module.Name;
$module.moduleVersion = '1.0.0';
$module.CmdletToExport = @(
'Get-Hoge'
);
$module.FunctionsToExport = @('');
$module.VariableToExport = $module.Name;
$private:moduleManufest = @{
Path = $module.Path;
Author = $module.Author;
Copyright = $module.Copyright;
ModuleVersion = $module.moduleVersion;
description = $module.description;
PowerShellVersion = $module.PowerShellVersion;
DotNetFrameworkVersion = $module.DotNetFrameworkVersion;
RootModule = $module.RootModule;
CmdletsToExport = $module.CmdletToExport;
FunctionsToExport = $module.FunctionsToExport;
VariablesToExport = $module.variableToExport;
RequiredAssemblies = $module.RequreAssemblies;
}
New-ModuleManifest @moduleManufest -Verbose;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.