Private/Get-KadenWorkspaceSeedRelativePath.ps1
|
function Get-KadenWorkspaceSeedRelativePath { <# .SYNOPSIS Return init-only seed paths for doc scaffolds and one Stack value. .DESCRIPTION Reads Seeds/manifest.psd1 for the init-only copy list. Keep Initialize-KadenRepo -Stack parameter help filenames aligned with that inventory by hand. #> [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$Stack ) $manifestPath = Join-Path $script:KadenModuleRoot (Join-Path 'Seeds' 'manifest.psd1') $manifest = Import-PowerShellDataFile -Path $manifestPath $specific = @() switch ($Stack) { 'Node' { $specific = @($manifest.Node) } 'PowerShell' { $specific = @($manifest.PowerShell) } 'Python' { $specific = @($manifest.Python) } 'SQL' { $specific = @($manifest.SQL) } 'Polyglot' { $specific = @($manifest.Node + $manifest.PowerShell + $manifest.Python + $manifest.SQL) } default { $specific = @() } } return @($manifest.Docs + $manifest.Universal + $specific) } |