Skip to content

Commit 8eebed0

Browse files
authored
Add -upload-route flag to lsif upload (#267)
1 parent ce79975 commit 8eebed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/src/lsif_upload.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Examples:
5050
noProgress *bool
5151
maxPayloadSizeMb *int
5252
ignoreUploadFailures *bool
53+
uploadRoute *string
5354
}
5455

5556
flagSet := flag.NewFlagSet("upload", flag.ExitOnError)
@@ -64,6 +65,7 @@ Examples:
6465
flags.noProgress = flagSet.Bool("no-progress", false, `Do not display a progress bar.`)
6566
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.`)
6667
flags.ignoreUploadFailures = flagSet.Bool("ignore-upload-failure", false, `Exit with status code zero on upload failure.`)
68+
flags.uploadRoute = flagSet.String("upload-route", "/.api/lsif/upload", "The path of the upload route.")
6769

6870
parseAndValidateFlags := func(args []string) error {
6971
flagSet.Parse(args)
@@ -159,6 +161,7 @@ Examples:
159161
Endpoint: cfg.Endpoint,
160162
AccessToken: cfg.AccessToken,
161163
AdditionalHeaders: cfg.AdditionalHeaders,
164+
Path: *flags.uploadRoute,
162165
Repo: *flags.repo,
163166
Commit: *flags.commit,
164167
Root: *flags.root,

0 commit comments

Comments
 (0)