Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcegraph for PowerShell

powershellgallery downloads build

Search Sourcegraph from PowerShell

Text search output formatting

Symbol search output formatting

Pretty formatting is supported for text, file and symbol results (type:file and type:symbol)

Installation

Install-Module PSSourcegraph

Included

  • Search-Sourcegraph with autocompletion
  • Disable-SourcegraphRepository
  • Enable-SourcegraphRepository
  • Get-SourcegraphRepository
  • Get-SourcegraphUser
  • New-SourcegraphUser
  • Invoke-SourcegraphApiRequest

Missing something? Please file an issue!

Configuration

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'

About

Sourcegraph for PowerShell

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages