Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
256 changes: 0 additions & 256 deletions registry/coder/modules/claude-code/scripts/start.sh

This file was deleted.

21 changes: 21 additions & 0 deletions registry/coder/modules/tasks/MODULE_NAME.tftest.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
run "plan_with_required_vars" {
command = plan

variables {
agent_id = "example-agent-id"
}
}

run "app_url_uses_port" {
command = plan

variables {
agent_id = "example-agent-id"
port = 19999
}

assert {
condition = resource.coder_app.module_name.url == "http://localhost:19999"
error_message = "Expected module-name app URL to include configured port"
}
}
71 changes: 71 additions & 0 deletions registry/coder/modules/tasks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
display_name: tasks
description: Describe what this module does
icon: ../../../../.icons/<A_RELEVANT_ICON>.svg
verified: false
tags: [helper]
---

# tasks

<!-- Describes what this module does -->

```tf
module "tasks" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/NAMESPACE/tasks/coder"
version = "1.0.0"
}
```

<!-- Add a screencast or screenshot here put them in .images directory -->

## Examples

### Example 1

Install the Dracula theme from [OpenVSX](https://open-vsx.org/):

```tf
module "tasks" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/NAMESPACE/tasks/coder"
version = "1.0.0"
agent_id = coder_agent.main.id
extensions = [
"dracula-theme.theme-dracula"
]
}
```

Enter the `<author>.<name>` into the extensions array and code-server will automatically install on start.

### Example 2

Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) file:

```tf
module "tasks" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/NAMESPACE/tasks/coder"
version = "1.0.0"
agent_id = coder_agent.main.id
extensions = ["dracula-theme.theme-dracula"]
settings = {
"workbench.colorTheme" = "Dracula"
}
}
```

### Example 3

Run code-server in the background, don't fetch it from GitHub:

```tf
module "tasks" {
source = "registry.coder.com/NAMESPACE/tasks/coder"
version = "1.0.0"
agent_id = coder_agent.main.id
offline = true
}
```
Loading
Loading