Skip to content

Commit a6e2f07

Browse files
committed
Added cmdlet template
Date update Code cleanup
1 parent 49d8fc6 commit a6e2f07

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

CMDLET_TEMPLATE.ps1

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
function Get-CmdletTemplate {
2+
<#
3+
.SYNOPSIS
4+
[PURPOSE OF CMDLET]
5+
6+
.DESCRIPTION
7+
[SHORT DESCRIPTION]
8+
9+
.PARAMETER Arg1
10+
[PURPOSE OF Arg1]
11+
12+
.PARAMETER Arg2
13+
[PURPOSE OF Arg2]
14+
15+
.EXAMPLE
16+
Get-CmdletTemplate 1 2
17+
[ACTION DESCRIPTION]
18+
19+
#>
20+
[CmdletBinding()]
21+
param (
22+
[Parameter(Mandatory = $false, Position = 0)]
23+
[string]$Arg1,
24+
[Parameter(Mandatory = $false, Position = 1)]
25+
[System.IO.FileInfo[]]$Arg2
26+
)
27+
# [CODE]
28+
}

NullKit.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
GUID = '654a73f5-effe-42fc-8e75-ee439726bd26'
66
Author = 'Alan Plocieniak'
77
CompanyName = 'Alan Plocieniak'
8-
Copyright = '(c) 2019 Alan Plocieniak. All rights reserved.'
8+
Copyright = '(c) 2020 Alan Plocieniak. All rights reserved.'
99
Description = 'Misc PowerShell Tools'
1010
PowerShellVersion = '5.0'
1111
FunctionsToExport = '*'

NullKit.psm1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
$Public = Get-ChildItem -Path $PSScriptRoot -Recurse -Filter "*.ps1" | ? { $_.Name[0].Equals($_.Name.ToUpper()[0]) }
22

3-
#Dot source the files
43
Foreach ($import in $Public) {
54
try {
65
. $import.fullname

0 commit comments

Comments
 (0)