Skip to content

Commit

Permalink
Adding /functions/README.ps1.md (re #32)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Oct 3, 2022
1 parent cbfc5a8 commit 16e8b18
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Functions/README.ps1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This directory and it's subdirectories contain the functions defined in LightScript.

~~~PipeScript {
Import-Module ../LightScript.psd1
[PSCustomObject]@{
Table = Get-Command -Module LightScript |
Where-Object { $_.ScriptBlock.File -like "$pwd*" } |
.Name .Verb .Noun .Source {
$relativePath = $_.ScriptBlock.File.Substring("$pwd".Length) -replace '^[\\/]'
"[$relativePath]($relativePath)"
}
}
}
~~~

0 comments on commit 16e8b18

Please sign in to comment.