|
1 | 1 | # `src batch apply` |
2 | 2 |
|
| 3 | + |
3 | 4 | ## Flags |
4 | 5 |
|
5 | | -| Name | Description | Default Value | |
6 | | -| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | |
7 | | -| `-allow-unsupported` | Allow unsupported code hosts. | `false` | |
8 | | -| `-apply` | Ignored. | `false` | |
9 | | -| `-cache` | Directory for caching results and repository archives. | `~/.cache/sourcegraph/batch` | |
10 | | -| `-clean-archives` | If true, deletes downloaded repository archives after executing batch spec steps. Note that only the archives related to the actual repositories matched by the batch spec will be cleaned up, and clean up will not occur if src exits unexpectedly. | `true` | |
11 | | -| `-clear-cache` | If true, clears the execution cache and executes all steps anew. | `false` | |
12 | | -| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` | |
13 | | -| `-f` | The batch spec file to read, or - to read from standard input. | | |
14 | | -| `-fail-fast` | Halts execution immediately upon first error instead of continuing with other tasks. | `false` | |
15 | | -| `-force-override-ignore` | Do not ignore repositories that have a .batchignore file. | `false` | |
16 | | -| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` | |
17 | | -| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` | |
18 | | -| `-j` | The maximum number of parallel jobs. Default (or 0) is the number of CPU cores available to Docker. | `0` | |
19 | | -| `-keep-logs` | Retain logs after executing steps. | `false` | |
20 | | -| `-n` | Alias for -namespace. | | |
21 | | -| `-namespace` | The user or organization namespace to place the batch change within. Default is the currently authenticated user. | | |
22 | | -| `-run-as-root` | If true, forces all step containers to run as root. | `false` | |
23 | | -| `-skip-errors` | If true, errors encountered won't stop the program, but only log them. | `false` | |
24 | | -| `-text-only` | INTERNAL USE ONLY. EXPERIMENTAL. Switches off the TUI to only print JSON lines. | `false` | |
25 | | -| `-timeout` | The maximum duration a single batch spec step can take. | `1h0m0s` | |
26 | | -| `-tmp` | Directory for storing temporary data, such as log files. Default is /tmp. Can also be set with environment variable SRC_BATCH_TMP_DIR; if both are set, this flag will be used and not the environment variable. | `/tmp` | |
27 | | -| `-trace` | Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing | `false` | |
28 | | -| `-user-agent-telemetry` | Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph | `true` | |
29 | | -| `-v` | print verbose output | `false` | |
30 | | -| `-workspace` | Workspace mode to use ("auto", "bind", or "volume") | `auto` | |
| 6 | +| Name | Description | Default Value | |
| 7 | +|------|-------------|---------------| |
| 8 | +| `-allow-unsupported` | Allow unsupported code hosts. | `false` | |
| 9 | +| `-apply` | Ignored. | `false` | |
| 10 | +| `-cache` | Directory for caching results and repository archives. | `~/.cache/sourcegraph/batch` | |
| 11 | +| `-clean-archives` | If true, deletes downloaded repository archives after executing batch spec steps. Note that only the archives related to the actual repositories matched by the batch spec will be cleaned up, and clean up will not occur if src exits unexpectedly. | `true` | |
| 12 | +| `-clear-cache` | If true, clears the execution cache and executes all steps anew. | `false` | |
| 13 | +| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` | |
| 14 | +| `-f` | The batch spec file to read, or - to read from standard input. | | |
| 15 | +| `-fail-fast` | Halts execution immediately upon first error instead of continuing with other tasks. | `false` | |
| 16 | +| `-force-override-ignore` | Do not ignore repositories that have a .batchignore file. | `false` | |
| 17 | +| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` | |
| 18 | +| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` | |
| 19 | +| `-j` | The maximum number of parallel jobs. Default (or 0) is the number of CPU cores available to Docker. | `0` | |
| 20 | +| `-keep-logs` | Retain logs after executing steps. | `false` | |
| 21 | +| `-n` | Alias for -namespace. | | |
| 22 | +| `-namespace` | The user or organization namespace to place the batch change within. Default is the currently authenticated user. | | |
| 23 | +| `-run-as-root` | If true, forces all step containers to run as root. | `false` | |
| 24 | +| `-skip-errors` | If true, errors encountered won't stop the program, but only log them. | `false` | |
| 25 | +| `-text-only` | INTERNAL USE ONLY. EXPERIMENTAL. Switches off the TUI to only print JSON lines. | `false` | |
| 26 | +| `-timeout` | The maximum duration a single batch spec step can take. | `1h0m0s` | |
| 27 | +| `-tmp` | Directory for storing temporary data, such as log files. Default is /tmp. Can also be set with environment variable SRC_BATCH_TMP_DIR; if both are set, this flag will be used and not the environment variable. | `/tmp` | |
| 28 | +| `-trace` | Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing | `false` | |
| 29 | +| `-user-agent-telemetry` | Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph | `true` | |
| 30 | +| `-v` | print verbose output | `false` | |
| 31 | +| `-workspace` | Workspace mode to use ("auto", "bind", or "volume") | `auto` | |
| 32 | + |
31 | 33 |
|
32 | 34 | ## Usage |
33 | 35 |
|
@@ -100,3 +102,4 @@ Examples: |
100 | 102 |
|
101 | 103 |
|
102 | 104 | ``` |
| 105 | + |
0 commit comments