Skip to content

Commit 3b74616

Browse files
committed
run formatter
1 parent 6df19f1 commit 3b74616

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1376
-1390
lines changed

README.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ You can configure OpenCode using environment variables:
8383
| `AZURE_OPENAI_ENDPOINT` | For Azure OpenAI models |
8484
| `AZURE_OPENAI_API_KEY` | For Azure OpenAI models (optional when using Entra ID) |
8585
| `AZURE_OPENAI_API_VERSION` | For Azure OpenAI models |
86+
8687
### Configuration File Structure
8788

8889
```json
@@ -205,7 +206,7 @@ To use bedrock models with OpenCode you need three things.
205206

206207
1. Valid AWS credentials (the env vars: `AWS_SECRET_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_REGION`)
207208
2. Access to the corresponding model in AWS Bedrock in your region.
208-
a. You can request access in the AWS console on the Bedrock -> "Model access" page.
209+
a. You can request access in the AWS console on the Bedrock -> "Model access" page.
209210
3. A correct configuration file. You don't need the `providers` key. Instead you have to prefix your models per agent with `bedrock.` and then a valid model. For now only Claude 3.7 is supported.
210211

211212
```json
@@ -226,10 +227,10 @@ To use bedrock models with OpenCode you need three things.
226227
"maxTokens": 80,
227228
"reasoningEffort": ""
228229
}
229-
},
230+
}
230231
}
231232
```
232-
233+
233234
## Interactive Mode Usage
234235

235236
```bash
@@ -295,26 +296,26 @@ These flags are mutually exclusive - you can use either `--allowedTools` or `--e
295296

296297
OpenCode supports the following output formats in non-interactive mode:
297298

298-
| Format | Description |
299-
| ------ | -------------------------------------- |
300-
| `text` | Plain text output (default) |
301-
| `json` | Output wrapped in a JSON object |
299+
| Format | Description |
300+
| ------ | ------------------------------- |
301+
| `text` | Plain text output (default) |
302+
| `json` | Output wrapped in a JSON object |
302303

303304
The output format is implemented as a strongly-typed `OutputFormat` in the codebase, ensuring type safety and validation when processing outputs.
304305

305306
## Command-line Flags
306307

307-
| Flag | Short | Description |
308-
| ----------------- | ----- | ---------------------------------------------------------- |
309-
| `--help` | `-h` | Display help information |
310-
| `--debug` | `-d` | Enable debug mode |
311-
| `--cwd` | `-c` | Set current working directory |
312-
| `--prompt` | `-p` | Run a single prompt in non-interactive mode |
313-
| `--output-format` | `-f` | Output format for non-interactive mode (text, json) |
314-
| `--quiet` | `-q` | Hide spinner in non-interactive mode |
315-
| `--verbose` | | Display logs to stderr in non-interactive mode |
316-
| `--allowedTools` | | Restrict the agent to only use specified tools |
317-
| `--excludedTools` | | Prevent the agent from using specified tools |
308+
| Flag | Short | Description |
309+
| ----------------- | ----- | --------------------------------------------------- |
310+
| `--help` | `-h` | Display help information |
311+
| `--debug` | `-d` | Enable debug mode |
312+
| `--cwd` | `-c` | Set current working directory |
313+
| `--prompt` | `-p` | Run a single prompt in non-interactive mode |
314+
| `--output-format` | `-f` | Output format for non-interactive mode (text, json) |
315+
| `--quiet` | `-q` | Hide spinner in non-interactive mode |
316+
| `--verbose` | | Display logs to stderr in non-interactive mode |
317+
| `--allowedTools` | | Restrict the agent to only use specified tools |
318+
| `--excludedTools` | | Prevent the agent from using specified tools |
318319

319320
## Keyboard Shortcuts
320321

@@ -483,6 +484,7 @@ You don't need to define all colors. Any undefined colors will fall back to the
483484
### Shell Configuration
484485

485486
OpenCode allows you to configure the shell used by the `bash` tool. By default, it uses:
487+
486488
1. The shell specified in the config file (if provided)
487489
2. The shell from the `$SHELL` environment variable (if available)
488490
3. Falls back to `/bin/bash` if neither of the above is available
@@ -577,6 +579,7 @@ RUN grep -R "$SEARCH_PATTERN" $DIRECTORY
577579
```
578580

579581
When you run a command with arguments, OpenCode will prompt you to enter values for each unique placeholder. Named arguments provide several benefits:
582+
580583
- Clear identification of what each argument represents
581584
- Ability to use the same argument multiple times
582585
- Better organization for commands with multiple inputs

0 commit comments

Comments
 (0)