Name: PSSourcegraph
Owner: Sourcegraph
Description: Sourcegraph for PowerShell
Created: 2018-04-27 23:56:14.0
Updated: 2018-05-08 02:00:00.0
Pushed: 2018-05-08 01:59:58.0
Homepage: null
Size: 11
Language: PowerShell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
all-Module PSSourcegraph
ke-SourcegraphApiRequest -Variables @{query = 'repogroup:sample test'} -Query @'
query($query: String!) {
search(query: $query) {
results {
resultCount
}
}
}
See Get-Help Invoke-SourcegraphApiRequest
for detailed documentation.
You can configure a default endpoint and token to be used by modifying $PSDefaultParameterValues
in your $PROFILE
:
efaultParameterValues['*Sourcegraph*:Token'] = '5c01fd47a2b2187c2947f8a2eb76b358f3ed0e26'
efaultParameterValues['*Sourcegraph*:Endpoint'] = 'https://sourcegraph.example.com'