Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All notable changes to `src-cli` are documented in this file.

### Added

- `SRC_HEADER_AUTHORIZATION="Bearer $(...)"` is now supported for authenticating `src` with custom auth proxies. See [auth proxy configuration docs](AUTH_PROXY.md) for more information.
- `SRC_HEADER_AUTHORIZATION="Bearer $(...)"` is now supported for authenticating `src` with custom auth proxies. See [auth proxy configuration docs](AUTH_PROXY.md) for more information. [#239](https://github.com/sourcegraph/src-cli/pull/239)
- Pull missing docker images automatically. [#191](https://github.com/sourcegraph/src-cli/pull/191)
- Searches that result in errors will now display any alerts returned by Sourcegraph, including suggestions for how the search could be corrected. [#221](https://github.com/sourcegraph/src-cli/pull/221)

Expand Down
4 changes: 3 additions & 1 deletion cmd/src/lsif_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Examples:
gitHubToken *string
open *bool
json *bool
noProgress *bool
maxPayloadSizeMb *int
ignoreUploadFailures *bool
}
Expand All @@ -60,6 +61,7 @@ Examples:
flags.gitHubToken = flagSet.String("github-token", "", `A GitHub access token with 'public_repo' scope that Sourcegraph uses to verify you have access to the repository.`)
flags.open = flagSet.Bool("open", false, `Open the LSIF upload page in your browser.`)
flags.json = flagSet.Bool("json", false, `Output relevant state in JSON on success.`)
flags.noProgress = flagSet.Bool("no-progress", false, `Do not display a progress bar.`)
flags.maxPayloadSizeMb = flagSet.Int("max-payload-size", 100, `The maximum upload size (in megabytes). Indexes exceeding this limit will be uploaded over multiple HTTP requests.`)
flags.ignoreUploadFailures = flagSet.Bool("ignore-upload-failure", false, `Exit with status code zero on upload failure.`)

Expand Down Expand Up @@ -175,7 +177,7 @@ Examples:
go func() {
defer wg.Done()

if *flags.json {
if *flags.json || *flags.noProgress {
return
}

Expand Down