3
3
param ()
4
4
5
5
$scriptName = $MyInvocation.MyCommand.Name
6
- Write-Verbose " [$scriptName ] Importing module"
6
+ Write-Debug " [$scriptName ] Importing module"
7
7
8
8
# region - Data import
9
- Write-Verbose " [$scriptName ] - [data] - Processing folder"
9
+ Write-Debug " [$scriptName ] - [data] - Processing folder"
10
10
$dataFolder = (Join-Path $PSScriptRoot ' data' )
11
- Write-Verbose " [$scriptName ] - [data] - [$dataFolder ]"
11
+ Write-Debug " [$scriptName ] - [data] - [$dataFolder ]"
12
12
Get-ChildItem - Path " $dataFolder " - Recurse - Force - Include ' *.psd1' - ErrorAction SilentlyContinue | ForEach-Object {
13
- Write-Verbose " [$scriptName ] - [data] - [$ ( $_.Name ) ] - Importing"
13
+ Write-Debug " [$scriptName ] - [data] - [$ ( $_.Name ) ] - Importing"
14
14
New-Variable - Name $_.BaseName - Value (Import-PowerShellDataFile - Path $_.FullName ) - Force
15
- Write-Verbose " [$scriptName ] - [data] - [$ ( $_.Name ) ] - Done"
15
+ Write-Debug " [$scriptName ] - [data] - [$ ( $_.Name ) ] - Done"
16
16
}
17
17
18
- Write-Verbose " [$scriptName ] - [data] - Done"
18
+ Write-Debug " [$scriptName ] - [data] - Done"
19
19
# endregion - Data import
20
20
21
21
# region - From /init
22
- Write-Verbose " [$scriptName ] - [/init] - Processing folder"
22
+ Write-Debug " [$scriptName ] - [/init] - Processing folder"
23
23
24
24
# region - From /init/initializer.ps1
25
- Write-Verbose " [$scriptName ] - [/init/initializer.ps1] - Importing"
25
+ Write-Debug " [$scriptName ] - [/init/initializer.ps1] - Importing"
26
26
27
27
Write-Verbose ' -------------------------------'
28
28
Write-Verbose ' --- THIS IS AN INITIALIZER ---'
29
29
Write-Verbose ' -------------------------------'
30
30
31
- Write-Verbose " [$scriptName ] - [/init/initializer.ps1] - Done"
31
+ Write-Debug " [$scriptName ] - [/init/initializer.ps1] - Done"
32
32
# endregion - From /init/initializer.ps1
33
33
34
- Write-Verbose " [$scriptName ] - [/init] - Done"
34
+ Write-Debug " [$scriptName ] - [/init] - Done"
35
35
# endregion - From /init
36
36
37
37
# region - From /classes
38
- Write-Verbose " [$scriptName ] - [/classes] - Processing folder"
38
+ Write-Debug " [$scriptName ] - [/classes] - Processing folder"
39
39
40
40
# region - From /classes/Book.ps1
41
- Write-Verbose " [$scriptName ] - [/classes/Book.ps1] - Importing"
41
+ Write-Debug " [$scriptName ] - [/classes/Book.ps1] - Importing"
42
42
43
43
class Book {
44
44
# Class properties
@@ -86,10 +86,10 @@ class Book {
86
86
}
87
87
}
88
88
89
- Write-Verbose " [$scriptName ] - [/classes/Book.ps1] - Done"
89
+ Write-Debug " [$scriptName ] - [/classes/Book.ps1] - Done"
90
90
# endregion - From /classes/Book.ps1
91
91
# region - From /classes/BookList.ps1
92
- Write-Verbose " [$scriptName ] - [/classes/BookList.ps1] - Importing"
92
+ Write-Debug " [$scriptName ] - [/classes/BookList.ps1] - Importing"
93
93
94
94
class BookList {
95
95
# Static property to hold the list of books
@@ -178,17 +178,17 @@ class BookList {
178
178
}
179
179
}
180
180
181
- Write-Verbose " [$scriptName ] - [/classes/BookList.ps1] - Done"
181
+ Write-Debug " [$scriptName ] - [/classes/BookList.ps1] - Done"
182
182
# endregion - From /classes/BookList.ps1
183
183
184
- Write-Verbose " [$scriptName ] - [/classes] - Done"
184
+ Write-Debug " [$scriptName ] - [/classes] - Done"
185
185
# endregion - From /classes
186
186
187
187
# region - From /private
188
- Write-Verbose " [$scriptName ] - [/private] - Processing folder"
188
+ Write-Debug " [$scriptName ] - [/private] - Processing folder"
189
189
190
190
# region - From /private/Get-InternalPSModule.ps1
191
- Write-Verbose " [$scriptName ] - [/private/Get-InternalPSModule.ps1] - Importing"
191
+ Write-Debug " [$scriptName ] - [/private/Get-InternalPSModule.ps1] - Importing"
192
192
193
193
Function Get-InternalPSModule {
194
194
<#
@@ -209,10 +209,10 @@ Function Get-InternalPSModule {
209
209
Write-Output " Hello, $Name !"
210
210
}
211
211
212
- Write-Verbose " [$scriptName ] - [/private/Get-InternalPSModule.ps1] - Done"
212
+ Write-Debug " [$scriptName ] - [/private/Get-InternalPSModule.ps1] - Done"
213
213
# endregion - From /private/Get-InternalPSModule.ps1
214
214
# region - From /private/Set-InternalPSModule.ps1
215
- Write-Verbose " [$scriptName ] - [/private/Set-InternalPSModule.ps1] - Importing"
215
+ Write-Debug " [$scriptName ] - [/private/Set-InternalPSModule.ps1] - Importing"
216
216
217
217
Function Set-InternalPSModule {
218
218
<#
@@ -237,17 +237,17 @@ Function Set-InternalPSModule {
237
237
Write-Output " Hello, $Name !"
238
238
}
239
239
240
- Write-Verbose " [$scriptName ] - [/private/Set-InternalPSModule.ps1] - Done"
240
+ Write-Debug " [$scriptName ] - [/private/Set-InternalPSModule.ps1] - Done"
241
241
# endregion - From /private/Set-InternalPSModule.ps1
242
242
243
- Write-Verbose " [$scriptName ] - [/private] - Done"
243
+ Write-Debug " [$scriptName ] - [/private] - Done"
244
244
# endregion - From /private
245
245
246
246
# region - From /public
247
- Write-Verbose " [$scriptName ] - [/public] - Processing folder"
247
+ Write-Debug " [$scriptName ] - [/public] - Processing folder"
248
248
249
249
# region - From /public/Get-PSModuleTest.ps1
250
- Write-Verbose " [$scriptName ] - [/public/Get-PSModuleTest.ps1] - Importing"
250
+ Write-Debug " [$scriptName ] - [/public/Get-PSModuleTest.ps1] - Importing"
251
251
252
252
# Requires -Modules Utilities
253
253
@@ -272,10 +272,10 @@ function Get-PSModuleTest {
272
272
Write-Output " Hello, $Name !"
273
273
}
274
274
275
- Write-Verbose " [$scriptName ] - [/public/Get-PSModuleTest.ps1] - Done"
275
+ Write-Debug " [$scriptName ] - [/public/Get-PSModuleTest.ps1] - Done"
276
276
# endregion - From /public/Get-PSModuleTest.ps1
277
277
# region - From /public/New-PSModuleTest.ps1
278
- Write-Verbose " [$scriptName ] - [/public/New-PSModuleTest.ps1] - Importing"
278
+ Write-Debug " [$scriptName ] - [/public/New-PSModuleTest.ps1] - Importing"
279
279
280
280
# Requires -Modules @ {ModuleName = ' PSSemVer' ; ModuleVersion = ' 1.0' }
281
281
@@ -304,10 +304,10 @@ function New-PSModuleTest {
304
304
Write-Output " Hello, $Name !"
305
305
}
306
306
307
- Write-Verbose " [$scriptName ] - [/public/New-PSModuleTest.ps1] - Done"
307
+ Write-Debug " [$scriptName ] - [/public/New-PSModuleTest.ps1] - Done"
308
308
# endregion - From /public/New-PSModuleTest.ps1
309
309
# region - From /public/Set-PSModuleTest.ps1
310
- Write-Verbose " [$scriptName ] - [/public/Set-PSModuleTest.ps1] - Importing"
310
+ Write-Debug " [$scriptName ] - [/public/Set-PSModuleTest.ps1] - Importing"
311
311
312
312
function Set-PSModuleTest {
313
313
<#
@@ -336,10 +336,10 @@ function Set-PSModuleTest {
336
336
}
337
337
}
338
338
339
- Write-Verbose " [$scriptName ] - [/public/Set-PSModuleTest.ps1] - Done"
339
+ Write-Debug " [$scriptName ] - [/public/Set-PSModuleTest.ps1] - Done"
340
340
# endregion - From /public/Set-PSModuleTest.ps1
341
341
# region - From /public/Test-PSModuleTest.ps1
342
- Write-Verbose " [$scriptName ] - [/public/Test-PSModuleTest.ps1] - Importing"
342
+ Write-Debug " [$scriptName ] - [/public/Test-PSModuleTest.ps1] - Importing"
343
343
344
344
function Test-PSModuleTest {
345
345
<#
@@ -362,19 +362,19 @@ function Test-PSModuleTest {
362
362
Write-Output " Hello, $Name !"
363
363
}
364
364
365
- Write-Verbose " [$scriptName ] - [/public/Test-PSModuleTest.ps1] - Done"
365
+ Write-Debug " [$scriptName ] - [/public/Test-PSModuleTest.ps1] - Done"
366
366
# endregion - From /public/Test-PSModuleTest.ps1
367
367
368
- Write-Verbose " [$scriptName ] - [/public] - Done"
368
+ Write-Debug " [$scriptName ] - [/public] - Done"
369
369
# endregion - From /public
370
370
371
371
# region - From /finally.ps1
372
- Write-Verbose " [$scriptName ] - [/finally.ps1] - Importing"
372
+ Write-Debug " [$scriptName ] - [/finally.ps1] - Importing"
373
373
374
374
Write-Verbose ' ------------------------------'
375
375
Write-Verbose ' --- THIS IS A LAST LOADER ---'
376
376
Write-Verbose ' ------------------------------'
377
- Write-Verbose " [$scriptName ] - [/finally.ps1] - Done"
377
+ Write-Debug " [$scriptName ] - [/finally.ps1] - Done"
378
378
# endregion - From /finally.ps1
379
379
380
380
$exports = @ {
0 commit comments