Public/Get-PCSecretNames.ps1
|
function Get-PCSecretNames { <# .SYNOPSIS Lists all configured service names in the secret store. .OUTPUTS [string[]] Array of service names. .EXAMPLE Get-PCSecretNames # Returns: @('openai', 'anthropic', 'gemini', 'brave-search') #> [CmdletBinding()] [OutputType([string[]])] param() $secrets = Read-PCSecretsFile return @($secrets.Keys | Sort-Object) } |