Skip to content

Commit

Permalink
chore: Moving LightScript.EzFormat into /Build ( Fixes #108, Fixes #110
Browse files Browse the repository at this point in the history
… )

Also, including formatting within types.
  • Loading branch information
James Brundage committed Jan 19, 2024
1 parent 87e24ec commit a2eedb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LightScript.ezformat.ps1 → Build/LightScript.ezout.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Install-Module EZOut or https://github.com/StartAutomating/EZOut
$myFile = $MyInvocation.MyCommand.ScriptBlock.File
$myModuleName = 'LightScript'
$myRoot = $myFile | Split-Path
$myRoot = $myFile | Split-Path | Split-Path
Push-Location $myRoot
$formatting = @(
# Add your own Write-FormatView here,
# or put them in a Formatting or Views directory
foreach ($potentialDirectory in 'Formatting','Views') {
foreach ($potentialDirectory in 'Formatting','Views','Types') {
Join-Path $myRoot $potentialDirectory |
Get-ChildItem -ea ignore |
Import-FormatView -FilePath {$_.Fullname}
Expand Down

0 comments on commit a2eedb8

Please sign in to comment.