src/_Write-CciGetNextStep.ps1

function _Write-CciGetNextStep {
<#
.SYNOPSIS
    Prints what is available and what to run next.
.DESCRIPTION
    Connect-CciGet used to end with a bare success line, leaving the operator
    to know the module name and the next cmdlet from memory. On a freshly built
    machine there is nothing to discover them from, so the connect step now
    lists what the tenant actually offers and names the next command.
#>

    [CmdletBinding()]
    param()

    $modules = @(_Get-CciModuleCompletionSource)
    if (-not $modules) { return }

    Write-Host ''
    Write-Host ' Available modules:'
    foreach ($m in $modules) {
        Write-Host (" {0,-22} {1}" -f $m.Name, $m.Version)
    }
    Write-Host ''
    Write-Host " Next: Install-CciModule <name> (Tab completes the name)"
    Write-Host ''
}