You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/src/lsif_upload.go
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ import (
18
18
19
19
"github.com/kballard/go-shellquote"
20
20
"github.com/mattn/go-isatty"
21
+
"github.com/pkg/browser"
21
22
)
22
23
23
24
funcisFlagSet(fs*flag.FlagSet, namestring) bool {
@@ -63,7 +64,8 @@ Examples:
63
64
fileFlag=flagSet.String("file", "./dump.lsif", `The path to the LSIF dump file.`)
64
65
githubTokenFlag=flagSet.String("github-token", "", `A GitHub access token with 'public_repo' scope that Sourcegraph uses to verify you have access to the repository.`)
65
66
rootFlag=flagSet.String("root", "", `The path in the repository that matches the LSIF projectRoot (e.g. cmd/project1). Defaults to the empty string, which refers to the top level of the repository.`)
66
-
indexerName=flagSet.String("indexerName", "", `The name of the indexer that generated the dump. This will override the 'toolInfo.name' field in the metadata vertex of the LSIF dump file. This must be supplied if the indexer does not set this field (in which case the upload will fail with an explicit message).`)
67
+
indexerNameFlag=flagSet.String("indexerName", "", `The name of the indexer that generated the dump. This will override the 'toolInfo.name' field in the metadata vertex of the LSIF dump file. This must be supplied if the indexer does not set this field (in which case the upload will fail with an explicit message).`)
68
+
openFlag=flagSet.Bool("open", false, `Open the LSIF upload page in your browser.`)
0 commit comments