Add example output

This commit is contained in:
Markus Fleschutz 2021-09-29 22:15:40 +02:00
parent 4f18f35820
commit 1d8f6b36e5
6 changed files with 35 additions and 1 deletions

View File

@ -5,6 +5,12 @@
Lists all automatic variables of PowerShell
.EXAMPLE
PS> ./list-automatic-variables
Variable Content
-------- -------
$false False
$HOME C:\Users\Markus
...
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -5,6 +5,12 @@
Lists all PowerShell cmdlets
.EXAMPLE
PS> ./list-cmdlets
CommandType Name Version Source
----------- ---- ------- ------
Function Add-BCDataCacheExtension 1.0.0.0 BranchCache
Function Add-BitLockerKeyProtector 1.0.0.0 BitLocker
...
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -5,6 +5,12 @@
Lists all commits in a Git repository (format is: list|compact|normal|JSON)
.EXAMPLE
PS> ./list-commits
ID Date Committer Description
-- ---- --------- -----------
ccd0d3e Wed Sep 29 08:28:20 2021 +0200 Markus Fleschutz Fix typo
291d785 Wed Sep 29 08:18:28 2021 +0200 Markus Fleschutz Update README.md
...
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
@ -19,7 +25,7 @@ try {
$Null = (git --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
"🢃 Fetching latest tags..."
write-progress "🢃 Fetching latest tags..."
& git -C "$RepoDir" fetch --all --quiet
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }

View File

@ -5,6 +5,10 @@
Lists the network shares of the local computer
.EXAMPLE
PS> ./list-network-shares
Name Path Description
---- ---- -----------
Users C:\Users
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -5,6 +5,12 @@
Lists the local computer services
.EXAMPLE
PS> ./list-services
Status Name DisplayName
------ ---- -----------
Running AarSvc_886c2 Agent Activation Runtime_886c2
Running Apple Mobile De... Apple Mobile Device Service
...
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK

View File

@ -5,6 +5,12 @@
Lists the user groups on the local computer
.EXAMPLE
PS> ./list-user-groups
Name Description
---- -----------
HomeUsers HomeUsers Security Group
Ssh Users Members of this group can remotely access this computer over SSH protocol.
...
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK