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: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,7 @@ You can use the menu or keyboard shortcut which will launch an input box.
202
202
203
203
The comment will be inserted at the current cursor location.
204
204
In VS Code, access the command palette (Ctrl+Shift+P) and then "PowerShell: Show Additional Commands from PowerShell Modules". Select "Insert ToDo" from the list and you'll get the same input box. Note that this will only work for PowerShell files.
205
+
205
206
### Compatibility
206
207
Where possible these commands have been tested with PowerShell Core, but not every platform. If you encounter problems,have suggestions or other feedback, please post an issue.
Copy file name to clipboardExpand all lines: Utilities.ps1
-104Lines changed: 0 additions & 104 deletions
Original file line number
Diff line number
Diff line change
@@ -1,71 +1,7 @@
1
1
2
2
3
3
FunctionGet-PowerShellEngine {
4
-
<#
5
-
.Synopsis
6
-
Get the path to the current PowerShell engine
7
-
.Description
8
-
Use this command to find the path to the PowerShell executable, or engine that is running your current session. The path for PowerShell 6 is different than previous versions.
9
4
10
-
The default is to provide the path only. But you can also get detailed information
11
-
.ParameterDetail
12
-
Include additional information. Not all properties may have values depending on operating system and PowerShell version.
Result from running in a PowerShell session on Linux
57
-
58
-
.Link
59
-
$PSVersionTable
60
-
.Link
61
-
$Host
62
-
.Link
63
-
Get-Process
64
-
65
-
.Outputs
66
-
[string]
67
-
[pscustomobject]
68
-
#>
69
5
[CmdletBinding()]
70
6
Param([switch]$Detail)
71
7
@@ -89,46 +25,6 @@ Function Get-PowerShellEngine {
89
25
}
90
26
91
27
FunctionOut-More {
92
-
<#
93
-
.Synopsis
94
-
Send "pages" of objects to the pipeline.
95
-
.Description
96
-
This function is designed to display groups or "pages" of objects to the PowerShell pipeline. It is modeled after the legacy More.com command line utility.
97
-
By default the command will write out objects out to the pipeline in groups of 50. You will be prompted after each grouping. Pressing M or Enter will get the next group. Pressing A will stop paging and display all of the remaining objects. Pressing N will display the next object. Press Q to stop writing anything else to the pipeline.
98
-
.ParameterClearScreen
99
-
Clear the screen prior to writing data to the pipeline. This parameter has an alias of cls.
100
-
.ParameterCount
101
-
The number of objects to group together in a page. This parameter has an alias of i.
102
-
.Example
103
-
PS C:\> get-process | out-more -count 10
104
-
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id SI ProcessName
A single line of text that will be wrapped in a border.
124
-
125
-
```yaml
126
-
Type: String
127
-
Parameter Sets: single
128
-
Aliases:
129
-
130
-
Required: True
131
-
Position: 1
132
-
Default value: None
133
-
Accept pipeline input: True (ByValue)
134
-
Accept wildcard characters: False
135
-
```
136
-
137
-
### -TextBlock
138
-
A multiline block of text.
139
-
You might want to trim blank lines from the beginning, end or both.
140
-
141
-
```yaml
142
-
Type: String[]
143
-
Parameter Sets: block
144
-
Aliases:
145
-
146
-
Required: True
147
-
Position: 1
148
-
Default value: None
149
-
Accept pipeline input: False
150
-
Accept wildcard characters: False
151
-
```
156
+
### CommonParameters
157
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
152
158
153
159
## INPUTS
160
+
154
161
### None
162
+
155
163
## OUTPUTS
164
+
156
165
### System.String
166
+
157
167
## NOTES
158
168
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This command calculates a percentage of a value from a total, with the formula (value/total)*100. The default is to return a value to 2 decimal places but you can configure that with -Decimal. There is also an option to format the percentage as a string which will include the % symbol.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments