You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _InitializeRepository.ps1
+11-64Lines changed: 11 additions & 64 deletions
Original file line number
Diff line number
Diff line change
@@ -11,96 +11,43 @@ If you have made changes to any files you may want to commit them before continu
11
11
12
12
[string] $organizationName=Read-Host-Prompt "Enter your name, or the the name of your organization (e.g. 'My Company'). This will be used in the module manifest and repository license"
Copy file name to clipboardExpand all lines: src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psd1
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,7 @@ Checkout the template repository at https://github.com/deadlydog/Template.PowerS
69
69
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
70
70
FunctionsToExport=@(
71
71
'Get-TemplateDescription'
72
+
'New-PowerShellModuleRepository'
72
73
)
73
74
74
75
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
# This is just example code. Run the _InitializeRepository.ps1 script to replace this file with your module.
2
2
3
-
functionGet-TemplateDescription {
3
+
functionGet-TemplateDescription
4
+
{
4
5
[CmdletBinding()]
5
6
Param ()
6
7
7
8
[string] $description=@'
8
-
This module does nothing, but is part of a template git repository that you can clone to create new PowerShell script modules quickly and easily with boilerplate files and CI/CD workflows already defined.
9
+
This module is part of a template git repository that you can use to create new PowerShell script module repos quickly and easily with boilerplate files and CI/CD workflows already defined.
9
10
10
11
For more information, visit the repository at https://github.com/deadlydog/Template.PowerShell.ScriptModule.
11
12
'@
12
13
13
14
Write-Output$description
14
15
}
16
+
17
+
functionNew-PowerShellModuleRepository
18
+
{
19
+
[CmdletBinding()]
20
+
Param
21
+
(
22
+
[Parameter(Mandatory=$true,HelpMessage="The path to the directory where the module repository should be created.")]
23
+
[ValidateNotNullOrEmpty()]
24
+
[string] $RepositoryDirectoryPath,
25
+
26
+
[Parameter(Mandatory=$true,HelpMessage="The name of the module to create.")]
27
+
[ValidateNotNullOrEmpty()]
28
+
[string] $ModuleName,
29
+
30
+
[Parameter(Mandatory=$true,HelpMessage="The name of the individual or organization that owns the module.")]
0 commit comments