Module/VSCode/Set-VSCode-BCSDebugSettingsForTenant.ps1

<#
.SYNOPSIS
Initialize the debug repo for a specific tenant
 
.DESCRIPTION
Copies app-<tenant>.json to app.json and empties the .alpackages folder.
 
.EXAMPLE
Set-VSCode-BCSDebugSettingsForTenant -Tenant desenio
 
.NOTES
    Author: Mathias Stjernfelt
    Website: http://www.brightcom.se
#>

function Set-VSCode-BCSDebugSettingsForTenant {
    Param (
        [Parameter(ValueFromPipelineByPropertyName, Mandatory = $true)]
        [string]$Tenant
    )
    begin {}

    process {
        Copy-Item -Path (".\app-{0}.json" -f $Tenant) -Destination "app.json" -Force
        Remove-Item -Path ".\.alpackages\*.*"

        Write-Host "Init done, please run AL: Download Symbols before debuggning" -ForegroundColor Green
    }

    end {
    }
}

Export-ModuleMember -Function Set-VSCode-BCSDebugSettingsForTenant