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
|[CalculatedProperty](#calculatedproperty): _Create a calculated property for use in a select-object call by @corbob_|
20
-
|[PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_|
21
20
|[DateTimeWriteVerbose](#datetimewriteverbose): _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_|
22
21
|[Parameter-Credential](#parameter-credential): _Add a standard credential parameter to your function by @omniomi_|
22
+
|[PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_|
23
23
24
24
## Snippets
25
25
@@ -39,27 +39,6 @@ Create calculated property for use in Select Statements
39
39
}
40
40
```
41
41
42
-
### PSCustomObject
43
-
44
-
A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.
45
-
46
-
#### Snippet
47
-
48
-
```json
49
-
"PSCustomObject": {
50
-
"prefix": "PSCustomObject",
51
-
"body": [
52
-
"[PSCustomObject]@{\r",
53
-
"\t${item1} = ${Property1}\r",
54
-
"\t${item2} = ${Property2}\r",
55
-
"\t${item3} = ${Property3}\r",
56
-
"\t${item4} = ${Property4}\r",
57
-
"}"
58
-
],
59
-
"description": "Creates a PSCustomObject"
60
-
}
61
-
```
62
-
63
42
### DateTimeWriteVerbose
64
43
65
44
Quickly add a `Write-Verbose` with the current date and time inserted before the message you're going to write to the verbose stream, by @ThmsRynr.
@@ -97,6 +76,27 @@ Add a `-Credential` parameter that supports a PSCredential object in a variable,
97
76
}
98
77
```
99
78
79
+
### PSCustomObject
80
+
81
+
A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.
82
+
83
+
#### Snippet
84
+
85
+
```json
86
+
"PSCustomObject": {
87
+
"prefix": "PSCustomObject",
88
+
"body": [
89
+
"[PSCustomObject]@{\r",
90
+
"\t${item1} = ${Property1}\r",
91
+
"\t${item2} = ${Property2}\r",
92
+
"\t${item3} = ${Property3}\r",
93
+
"\t${item4} = ${Property4}\r",
94
+
"}"
95
+
],
96
+
"description": "Creates a PSCustomObject"
97
+
}
98
+
```
99
+
100
100
## Contributing
101
101
102
102
If you'd like to add a snippet to this list, [open a pull request](https://opensource.guide/how-to-contribute/#opening-a-pull-request) with the following changes:
@@ -119,7 +119,7 @@ An example looks like this (NOTE: all lowercase link):
0 commit comments