sourcegraph/PSSourcegraph

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Sourcegraph for PowerShell

powershellgallery downloads build

Installation
all-Module PSSourcegraph
Usage example
ke-SourcegraphApiRequest -Variables @{query = 'repogroup:sample test'} -Query @'
query($query: String!) {
    search(query: $query) {
        results {
            resultCount
        }
    }
}

See Get-Help Invoke-SourcegraphApiRequest for detailed documentation.

Configuration

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'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.