Skip to content

Commit 32da4c2

Browse files
travisclagronerjmholt
authored andcommitted
Remove redundant community snippets (#2063)
* Remove the "CalculatedProperty" community snippet, which is a duplicate of the "CalculatedProperty" snippet * Remove the "IfShouldProcess" community snippet, which is a duplicate of the "IfShouldProcess" snippet * Remove the "PSCustomObject" community snippet, which is a duplicate of the "PSCustomObject" snippet
1 parent 99a8460 commit 32da4c2

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

docs/community_snippets.md

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ _To contribute, check out our [guide here](#contributing)._
2020
| --------- | ---------|
2121
| [AssertMock](#assert-mock) | _Creates assert mock Pester test_ |
2222
| [AWSRegionDynamicParameter](#awsregiondynamicparameter) | _Creates a dynamic parameter of current AWS regions by @jbruett_ |
23-
| [CalculatedProperty](#calculatedproperty) | _Create a calculated property for use in a select-object call by @corbob_ |
2423
| [DataTable](#datatable) | _Creates a DataTable_ |
2524
| [DateTimeWriteVerbose](#datetimewriteverbose) | _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ |
2625
| [Error-Terminating](#error-terminating) | _Create a full terminating error by @omniomi_ |
2726
| [Exchange Online Connection](exchange-online-connection) | _Create a connection to Exchange Online by @vmsilvamolina_ |
2827
| [HTML header](#html-header) | _Add HTML header with the style tag by @vmsilvamolina_ |
29-
| [IfShouldProcess](#ifshouldprocess) | _Added If Should Process_ |
3028
| [MaxColumnLengthinDataTable](#maxcolumnlengthindatatable) | _Gets the max length of string columns in datatables_ |
3129
| [New Azure Resource Group](#new-azure-resource-group) | _Create an Azure Resource group by @vmsilvamolina_ |
3230
| [Parameter-Credential](#parameter-credential) | _Add a standard credential parameter to your function by @omniomi_ |
3331
| [PesterTestForMandatoryParameter](#pestertestformandatoryparameter) | _Create Pester test for a mandatory parameter_ |
3432
| [PesterTestForParameter](#pestertestforparameter) | _Create Pester test for parameter_ |
35-
| [PSCustomObject](#pscustomobject) | _A simple PSCustomObject by @brettmillerb_ |
3633
| [Send-MailMessage](#send-mailmessage) | _Send an mail message with the most common parameters by @fullenw1_ |
3734

3835
## Snippets
@@ -91,22 +88,6 @@ Creates a dynamic parameter of the current AWS regions. Includes parameter vali
9188
}
9289
```
9390

94-
### CalculatedProperty
95-
96-
Create calculated property for use in Select Statements
97-
98-
#### Snippet
99-
100-
```json
101-
"Add Calculated Property": {
102-
"prefix": "cf",
103-
"body": [
104-
"@{'Name' = '$1' ; 'Expression' = {$2}}",
105-
],
106-
"description": "Create calculated property for use in Select Statements"
107-
}
108-
```
109-
11091
### DataTable
11192

11293
Quickly create a Data Table object by @SQLDBAWithABeard.
@@ -229,24 +210,6 @@ Add HTML header to a variable with the style tag (for css).
229210
}
230211
```
231212

232-
### IfShouldProcess
233-
234-
Add If Should Process with easy tab inputs
235-
236-
#### Snippet
237-
238-
```json
239-
"IfShouldProcess": {
240-
"prefix": "IfShouldProcess",
241-
"body": [
242-
"if ($$PSCmdlet.ShouldProcess(\"${1:The Item}\" , \"${2:The Change}\")) {",
243-
"\t# Place Code here",
244-
"}"
245-
],
246-
"description": "Creates an if should process"
247-
}
248-
```
249-
250213
### MaxColumnLengthinDataTable
251214

252215
Takes a datatable object and iterates through it to get the max length of the string columns - useful for data loads into a SQL Server table with fixed column widths by @SQLDBAWithABeard
@@ -346,27 +309,6 @@ Quickly create a Pester Test for existence of a parameter by @SQLDBAWithABeard
346309
}
347310
```
348311

349-
### PSCustomObject
350-
351-
A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.
352-
353-
#### Snippet
354-
355-
```json
356-
"PSCustomObject": {
357-
"prefix": "PSCustomObject",
358-
"body": [
359-
"[PSCustomObject]@{\r",
360-
"\t${item1} = ${Property1}\r",
361-
"\t${item2} = ${Property2}\r",
362-
"\t${item3} = ${Property3}\r",
363-
"\t${item4} = ${Property4}\r",
364-
"}"
365-
],
366-
"description": "Creates a PSCustomObject"
367-
}
368-
```
369-
370312
### Send-MailMessage
371313

372314
Add the Send-MailMessage cmdlet with the most common parameters in a hashtable for splatting, by @fullenw1.

0 commit comments

Comments
 (0)