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
This is an alternative to `Get-Command` to make it easier to see at a glance what commands are contained within a module and what they can do. By default, `Get-ModuleCommand` looks for loaded modules.
34
+
Use `-ListAvailable` to see commands in module not currently loaded.
35
+
Note that if the help file is malformed or missing, you might get oddly formatted results.
36
+
37
+
```powersehell
38
+
PS C:\> Get-ModuleCommand PSCalendar
39
+
40
+
41
+
Verb: Get
42
+
43
+
Name Alias Type Synopsis
44
+
---- ----- ---- --------
45
+
Get-Calendar cal Function Displays a visual representation of a ...
46
+
47
+
48
+
Verb: Show
49
+
50
+
Name Alias Type Synopsis
51
+
---- ----- ---- --------
52
+
Show-Calendar scal Function Display a colorized calendar month in ...
53
+
Show-GuiCalendar gcal Function Display a WPF-based calendar
54
+
```
55
+
56
+
Get module commands using the default formatted view.
When using git you may create a number of branches.
1197
+
Presumably you merge these branches into the main or master branch.
1198
+
You can this command to remove all merged branches other than master and the current branch.
1199
+
You must be in the root of your project to run this command.
1200
+
1201
+
```powershell
1202
+
PS C:\MyProject> Remove-MergedBranch
1203
+
1204
+
Remove merged branch from MyProject?
1205
+
2.1.1
1206
+
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): n
1207
+
1208
+
Remove merged branch from MyProject?
1209
+
dev1
1210
+
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
1211
+
Deleted branch dev1 (was 75f6ab8).
1212
+
1213
+
Remove merged branch from MyProject?
1214
+
dev2
1215
+
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
1216
+
Deleted branch dev2 (was 75f6ab8).
1217
+
1218
+
Remove merged branch from MyProject?
1219
+
patch-254
1220
+
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): n
1221
+
1222
+
PS C:\MyProject>
1223
+
```
1224
+
1225
+
By default you will be prompted to remove each branch.
1226
+
1136
1227
### [Test-WithCulture](docs/Test-WithCulture.md)
1137
1228
1138
1229
When writing PowerShell commands, sometimes the culture you are running under becomes critical. For example, European countries use a different datetime format than North Americans which might present a problem with your script or command. Unless you have a separate computer running under the foreign culture, it is difficult to test. This command will allow you to test a scriptblock or even a file under a different culture, such as DE-DE for German.
@@ -1298,8 +1389,12 @@ This will display the service status color-coded.
1298
1389
1299
1390

1300
1391
1392
+
## Related Modules
1393
+
1394
+
If you find this module useful, you might also want to look at my tools for [creating and managing custom type extensions](https://github.com/jdhitsolutions/PSTypeExtensionTools), [managing scheduled jobs](https://github.com/jdhitsolutions/ScheduledJobTools) and [running remote commands outside of PowerShell Remoting](https://github.com/jdhitsolutions/PSRemoteOperations)
1395
+
1301
1396
## Compatibility
1302
1397
1303
1398
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue. It is assumed you will __not__ be running this commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
0 commit comments