Search Sourcegraph from PowerShell
Pretty formatting is supported for text, file and symbol results (type:file
and type:symbol
)
Install-Module PSSourcegraph
Search-Sourcegraph
with autocompletionDisable-SourcegraphRepository
Enable-SourcegraphRepository
Get-SourcegraphRepository
Get-SourcegraphUser
New-SourcegraphUser
Invoke-SourcegraphApiRequest
Missing something? Please file an issue!
You can configure a default endpoint and token to be used by modifying $PSDefaultParameterValues
in your $PROFILE
:
$PSDefaultParameterValues['*Sourcegraph*:Token'] = '5c01fd47a2b2187c2947f8a2eb76b358f3ed0e26'
$PSDefaultParameterValues['*Sourcegraph*:Endpoint'] = 'https://sourcegraph.example.com'