Skip to content

Commit b7296d3

Browse files
Friedrich WeinmannFriedrich Weinmann
authored andcommitted
moar updates
1 parent 77db3da commit b7296d3

31 files changed

+967
-10
lines changed

PSModuleDevelopment/PSModuleDevelopment.psproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<Folder>internal\tabcompletion</Folder>
2828
<Folder>internal\tabcompletion\scriptblocks</Folder>
2929
<Folder>internal\maintenance</Folder>
30-
<Folder>internal\tabcompletion\assignment</Folder>
3130
<Folder>internal\functions\template</Folder>
3231
<Folder>internal\templates</Folder>
3332
</Folders>
@@ -94,6 +93,12 @@
9493
<File Build="2">changelog.md</File>
9594
<File Build="2" Shared="True" ReferenceFunction="Invoke-template-store_ps1">internal\tabcompletion\scriptblocks\template-store.ps1</File>
9695
<File Build="2" Shared="True" ReferenceFunction="Invoke-template-templatename_ps1">internal\tabcompletion\scriptblocks\template-templatename.ps1</File>
96+
<File Build="2">internal\templates\function-1.0.0.0-Info.xml</File>
97+
<File Build="2">internal\templates\function-1.0.0.0.xml</File>
98+
<File Build="2">internal\templates\module-1.0.0.0-Info.xml</File>
99+
<File Build="2">internal\templates\module-1.0.0.0.xml</File>
100+
<File Build="2">internal\templates\PSMDTemplateReference-1.0.0.0-Info.xml</File>
101+
<File Build="2">internal\templates\PSMDTemplateReference-1.0.0.0.xml</File>
97102
</Files>
98103
<StartupScript>F:\Synchronized Data\Scripte\Powershell Studio\Projects\PSModuleDevelopment\Test-Module.ps1</StartupScript>
99104
</Project>
Binary file not shown.
Binary file not shown.

templates/PSFModule/PSMDInvoke.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
New-PSMDTemplate -ReferencePath "$PSScriptRoot" -OutStore psmoduledevelopment

templates/PSFModule/PSMDTemplate.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@{
2+
TemplateName = 'PSFModule'
3+
Version = "1.0.0.0"
4+
AutoIncrementVersion = $true
5+
Tags = 'module','psframework'
6+
Author = 'Friedrich Weinmann'
7+
Description = 'PowerShell Framework based module scaffold'
8+
Exclusions = @("PSMDInvoke.ps1") # Contains list of files - relative path to root - to ignore when building the template
9+
Scripts = @{
10+
guid = {
11+
[System.Guid]::NewGuid().ToString()
12+
}
13+
date = {
14+
Get-Date -Format "yyyy-MM-dd"
15+
}
16+
}
17+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
TOPIC
2+
about_þnameþ
3+
4+
SHORT DESCRIPTION
5+
Explains how to use the þnameþ powershell module
6+
7+
LONG DESCRIPTION
8+
<Insert Content here>
9+
10+
KEYWORDS
11+
þnameþ
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Functions
2+
3+
This is the folder where the functions go.
4+
5+
Depending on the complexity of the module, it is recommended to subdivide them into subfolders.
6+
7+
The module will pick up all .ps1 files recursively
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<#
2+
This is an example configuration file
3+
4+
By default, it is enough to have a single one of them,
5+
however if you have enough configuration settings to justify having multiple copies of it,
6+
feel totally free to split them into multiple files.
7+
#>
8+
9+
<#
10+
# Example Configuration
11+
Set-PSFConfig -Module 'þnameþ' -Name 'Example.Setting' -Value 10 -Initialize -Validation 'integer' -Handler { } -Description "Example configuration setting. Your module can then use the setting using 'Get-PSFConfigValue'"
12+
#>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Configurations
2+
3+
Through the `PSFramework` you have a simple method that allows you to ...
4+
5+
- Publish settings
6+
- With onboard documentation
7+
- Input validation
8+
- Scripts that run on change of settings
9+
- That can be discovered and updated by the user
10+
- That can be administrated by policy & DSC
11+
12+
The configuration system is a bit too complex to describe in a help file, you can however visit us at http://psframework.org for detailed guidance.
13+
14+
An example can be seen in the attached ps1 file
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Functions
2+
3+
This is the folder where the internal functions go.
4+
5+
Depending on the complexity of the module, it is recommended to subdivide them into subfolders.
6+
7+
The module will pick up all .ps1 files recursively

0 commit comments

Comments
 (0)