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
feat/cli: migrate version subcommand to use urface/cli (#1292)
* add runLegacy
* use go 1.26
* add util methods to work urfave/cli flags in api
* tweak help template to match legacy help
* split command runner into legacy and migrated
* migrate version to use urface cli
* add onUsageError func and rename funcs to be 'Wrap*'
* use Wrap from clicompat instead
* remove init
* update comments and method names of clicompat api flags
* move runMigrated to be in main and work with os.Args
* fix lint
{"dump-requests", false, "Log GraphQL requests and responses to stdout"},
18
+
{"get-curl", false, "Print the curl command for executing this query and exit (WARNING: includes printing your access token!)"},
19
+
{"trace", false, "Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing"},
20
+
{"insecure-skip-verify", false, "Skip validation of TLS certificates against trusted chains"},
21
+
{"user-agent-telemetry", defaultAPIUserAgentTelemetry(), "Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph"},
22
+
}
23
+
24
+
flags:=append([]cli.Flag{}, baseFlags...)
25
+
for_, item:=rangeflagTable {
26
+
flags=append(flags, &cli.BoolFlag{
27
+
Name: item.name,
28
+
Value: item.value,
29
+
Usage: item.text,
30
+
})
31
+
}
32
+
33
+
returnflags
34
+
}
35
+
36
+
// APIFlagsFromCmd reads the shared API-related flags from a command into api.Flags
0 commit comments