Update to the latest src-cli release (#36050)

This commit is contained in:
Ólafur Páll Geirsson 2022-05-25 22:06:26 +02:00 committed by GitHub
parent 937a270762
commit eea9e6ade9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 10 deletions

View File

@ -0,0 +1,22 @@
# `src code-intel`
## Usage
```
'src code-intel' manages code intelligence data on a Sourcegraph instance.
Usage:
src code-intel command [command options]
The commands are:
upload uploads an LSIF dump file
Use "src code-intel [command] -h" for more information about a command.
```

View File

@ -0,0 +1,27 @@
# `src debug`
## Usage
```
'src debug' gathers and bundles debug data from a Sourcegraph deployment for troubleshooting.
Usage:
src debug command [command options]
The commands are:
kube dumps context from k8s deployments
compose dumps context from docker-compose deployments
server dumps context from single-container deployments
Use "src debug command -h" for more information about a subcommands.
src debug has access to flags on src -- Ex: src -v kube -o foo.zip
```

View File

@ -5,7 +5,9 @@
* [`api`](api.md)
* [`batch`](batch/index.md)
* [`code-intel`](code-intel.md)
* [`config`](config/index.md)
* [`debug`](debug.md)
* [`extensions`](extensions/index.md)
* [`extsvc`](extsvc/index.md)
* [`login`](login.md)

View File

@ -65,22 +65,25 @@ Usage of 'src lsif upload':
Examples:
Upload an LSIF dump with explicit repo, commit, and upload files:
Upload a SCIP index with explicit repo, commit, and upload files:
$ src lsif upload -repo=FOO -commit=BAR -file=dump.lsif
$ src code-intel upload -repo=FOO -commit=BAR -file=index.scip
Upload an LSIF dump for a subproject:
Upload a SCIP index for a subproject:
$ src lsif upload -root=cmd/
$ src code-intel upload -root=cmd/
Upload an LSIF dump when lsifEnforceAuth is enabled:
Upload a SCIP index when lsifEnforceAuth is enabled:
$ src lsif upload -github-token=BAZ, or
$ src lsif upload -gitlab-token=BAZ
$ src code-intel upload -github-token=BAZ, or
$ src code-intel upload -gitlab-token=BAZ
Upload an LSIF dump when the LSIF indexer does not not declare a tool name.
Upload an LSIF index when the LSIF indexer does not not declare a tool name.
$ src lsif upload -indexer=lsif-elixir
$ src code-intel upload -indexer=lsif-elixir
For any of these commands, an LSIF index (default name: dump.lsif) can be
used instead of a SCIP index (default name: index.scip).
```

View File

@ -6,4 +6,4 @@ package srccli
// as the suggested download with this instance.
//
// At the time of a Sourcegraph release, this is always the latest src-cli version.
const MinimumVersion = "3.40.0"
const MinimumVersion = "3.40.1"