|
1 | | -# src search-jobs create |
| 1 | +# `src search-jobs create` |
| 2 | + |
| 3 | + |
| 4 | +## Flags |
| 5 | + |
| 6 | +| Name | Description | Default Value | |
| 7 | +|------|-------------|---------------| |
| 8 | +| `-c` | Comma-separated list of columns to display. Available: id,query,state,username,createdat,startedat,finishedat,url,logurl,total,completed,failed,inprogress | `id,username,state,query` | |
| 9 | +| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` | |
| 10 | +| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` | |
| 11 | +| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` | |
| 12 | +| `-json` | Output results as JSON for programmatic access | `false` | |
| 13 | +| `-trace` | Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing | `false` | |
| 14 | +| `-user-agent-telemetry` | Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph | `true` | |
2 | 15 |
|
3 | | -<p className="subtitle"> |
4 | | - `src search-jobs create` is a tool that creates a search job on a |
5 | | - Sourcegraph instance. |
6 | | -</p> |
7 | 16 |
|
8 | 17 | ## Usage |
9 | 18 |
|
10 | | -```bash |
| 19 | +``` |
11 | 20 | Usage of 'src search-jobs create': |
12 | 21 | -c string |
13 | | - Comma-separated list of columns to display. Available: id,query,state,username,createdat,startedat,finishedat,url,logurl,total,completed,failed,inprogress (default "id,username,state,query") |
| 22 | + Comma-separated list of columns to display. Available: id,query,state,username,createdat,startedat,finishedat,url,logurl,total,completed,failed,inprogress (default "id,username,state,query") |
14 | 23 | -dump-requests |
15 | | - Log GraphQL requests and responses to stdout |
| 24 | + Log GraphQL requests and responses to stdout |
16 | 25 | -get-curl |
17 | | - Print the curl command for executing this query and exit (WARNING: includes printing your access token!) |
| 26 | + Print the curl command for executing this query and exit (WARNING: includes printing your access token!) |
18 | 27 | -insecure-skip-verify |
19 | | - Skip validation of TLS certificates against trusted chains |
| 28 | + Skip validation of TLS certificates against trusted chains |
20 | 29 | -json |
21 | | - Output results as JSON for programmatic access |
| 30 | + Output results as JSON for programmatic access |
22 | 31 | -trace |
23 | | - Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing |
| 32 | + Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing |
24 | 33 | -user-agent-telemetry |
25 | | - Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true) |
26 | | - |
27 | | - Examples: |
28 | | - |
29 | | - Create a search job: |
30 | | - |
31 | | - $ src search-jobs create "repo:^github\.com/sourcegraph/sourcegraph$ sort:indexed-desc" |
32 | | - |
33 | | - Create a search job and display specific columns: |
34 | | - |
35 | | - $ src search-jobs create "repo:sourcegraph" -c id,state,username |
36 | | - |
37 | | - Create a search job and output in JSON format: |
38 | | - |
39 | | - $ src search-jobs create "repo:sourcegraph" -json |
| 34 | + Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true) |
| 35 | +
|
| 36 | + Examples: |
| 37 | + |
| 38 | + Create a search job: |
| 39 | + |
| 40 | + $ src search-jobs create "repo:^github\.com/sourcegraph/sourcegraph$ sort:indexed-desc" |
| 41 | + |
| 42 | + Create a search job and display specific columns: |
| 43 | + |
| 44 | + $ src search-jobs create "repo:sourcegraph" -c id,state,username |
| 45 | + |
| 46 | + Create a search job and output in JSON format: |
| 47 | + |
| 48 | + $ src search-jobs create "repo:sourcegraph" -json |
| 49 | + |
| 50 | + Available columns are: id, query, state, username, createdat, startedat, finishedat, |
| 51 | + url, logurl, total, completed, failed, inprogress |
| 52 | + |
40 | 53 |
|
41 | | - Available columns are: id, query, state, username, createdat, startedat, finishedat, |
42 | | - url, logurl, total, completed, failed, inprogress |
43 | 54 | ``` |
| 55 | + |
0 commit comments