Public/Set-Wsl.ps1
|
function Set-Wsl { param( [Parameter(Mandatory = $false)] [ArgumentCompleter({ param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters) Get-WslDistribution -Distribution "$wordToComplete*" | Where-Object { (-not ($_.Status -eq 'Installing') -and (-not ($_.Status -eq 'Uninstalling'))) } | ForEach-Object { $_.Distribution } })] [Alias("Distro", "Name", "DefaultDistro", "DistributionName", "Distribution")] [string]$DefaultDistribution ) Write-Warning "Set-Wsl is not yet implemented. Please use the WSL command line interface to set the default version and distribution." } |