Skip to content
Merged
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
3 changes: 3 additions & 0 deletions cmd/src/lsif_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Examples:
noProgress *bool
maxPayloadSizeMb *int
ignoreUploadFailures *bool
uploadRoute *string
}

flagSet := flag.NewFlagSet("upload", flag.ExitOnError)
Expand All @@ -64,6 +65,7 @@ Examples:
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.`)
flags.uploadRoute = flagSet.String("upload-route", "/.api/lsif/upload", "The path of the upload route.")

parseAndValidateFlags := func(args []string) error {
flagSet.Parse(args)
Expand Down Expand Up @@ -159,6 +161,7 @@ Examples:
Endpoint: cfg.Endpoint,
AccessToken: cfg.AccessToken,
AdditionalHeaders: cfg.AdditionalHeaders,
Path: *flags.uploadRoute,
Repo: *flags.repo,
Commit: *flags.commit,
Root: *flags.root,
Expand Down