diff --git a/.build/template/Template.psm1 b/.build/template/Template.psm1 index 08ad5ce..7951f72 100644 --- a/.build/template/Template.psm1 +++ b/.build/template/Template.psm1 @@ -58,6 +58,18 @@ if (Test-Path -Path $classesDataFilePath) { #endregion Classes +#region Enums + +$enumsPath = "$PSScriptRoot\enums" + +if (Test-Path -Path $enumsPath) { + Get-ChildItem -Path $enumsPath -Filter '*.ps1' | where PSIsContainer -eq $false | foreach { + . $_.FullName + } +} + +#endregion Enums + #region Private $privatePath = "$PSScriptRoot\private" @@ -81,3 +93,15 @@ if (Test-Path -Path $publicPath) { } #endregion Public + +#region Completers + +$completersPath = "$PSScriptRoot\completers" + +if (Test-Path -Path $completersPath) { + Get-ChildItem -Path $completersPath -Filter '*.ps1' | where PSIsContainer -eq $false | foreach { + . $_.FullName + } +} + +#region Completers diff --git a/docs/.gitkeep b/.build/template/completers/.gitkeep similarity index 100% rename from docs/.gitkeep rename to .build/template/completers/.gitkeep diff --git a/.build/template/enums/.gitkeep b/.build/template/enums/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index a29c1f5..df67a03 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -3,6 +3,7 @@ name: Deploy to GitHub Pages on: push: branches: ["main"] + workflow_dispatch: permissions: contents: read @@ -117,20 +118,11 @@ jobs: