We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd07273 commit 37a4aeeCopy full SHA for 37a4aee
NicolasAigner.SystemToolkit.psm1
@@ -1,6 +1,10 @@
1
-# Auto‑loader: importa todas as funções do subdiretório Functions
2
-Get-ChildItem -Path (Join-Path $PSScriptRoot 'Functions') -Filter '*.ps1' |
3
-ForEach-Object {
4
- . $_.FullName
5
- Export-ModuleMember -Function $_.BaseName
6
-}
+# ---------- NicolasAigner.SystemToolkit.psm1 ----------
+# Carrega todas as funções do subdiretório Functions
+$funcFiles = Get-ChildItem -Path (Join-Path $PSScriptRoot 'Functions') -Filter '*.ps1'
+
+foreach ($file in $funcFiles) {
+ . $file.FullName
7
+}
8
9
+# Exporta todas as funções carregadas
10
+Export-ModuleMember -Function $funcFiles.BaseName
0 commit comments