File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 83
83
84
84
85
85
$membersByType = @ {}
86
+ $CommonParentPath = $null
86
87
foreach ($fp in $FilePath ) {
87
88
$filePathRoot = Get-Item - Path $fp
89
+ if (-not $filePathRoot ) { continue }
90
+ if (-not $CommonParentPath ) {
91
+ $CommonParentPath = $filePathRoot.Parent.FullName
92
+ } elseif ($CommonParentPath ) {
93
+ $CommonParentPath | Split-Path - CommonPrefix $filePathRoot
94
+ }
88
95
$filesBeneathRoot = Get-ChildItem - Recurse - Path $fp - Force
89
96
90
97
:nextFile foreach ($fileBeneathRoot in $filesBeneathRoot ) {
211
218
}
212
219
213
220
# Do not Skip format/view/control files (this allows them to be in the same directory as types, if that is preferred)
214
- $isFormatFile = $item.Name -match ' \.(?>format|view|control)\.ps1$'
221
+ $isFormatFile = $item.Name -match ' \.(?>format|view|control)\.ps1$'
215
222
216
223
$itemName =
217
224
$item.Name.Substring (0 , $item.Name.Length - $item.Extension.Length )
352
359
}
353
360
}
354
361
362
+ .sql {
363
+ if (-not $noteProperty.Contains ($itemName )) # SQL files become note properties.
364
+ {
365
+ $noteProperty [$itemName ] = $fileText
366
+ }
367
+ }
355
368
356
369
# endregion .txt Files
357
370
# region .psd1 Files
@@ -406,7 +419,7 @@ return `$convertedFromJson
406
419
"@ )
407
420
}
408
421
}
409
- # endregion JSON files
422
+ # endregion JSON files
410
423
# region CliXML files
411
424
# Clixml files are embedded into a ScriptProperty and Deserialized.
412
425
.clixml {
You can’t perform that action at this time.
0 commit comments