Skip to content

Commit 2a65de4

Browse files
committed
chore: format cursor-cli module and tests
1 parent a075139 commit 2a65de4

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

registry/coder-labs/modules/cursor-cli/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ module "cursor_cli" {
2222
agent_id = coder_agent.example.id
2323
2424
# Optional
25-
folder = "/home/coder/project"
26-
install_cursor_cli = true
27-
cursor_cli_version = "latest"
28-
base_command = "status" # optional subcommand (default is chat mode)
29-
output_format = "json" # text | json | stream-json
30-
force = false
31-
model = "gpt-5"
32-
mcp_json = jsonencode({
25+
folder = "/home/coder/project"
26+
install_cursor_cli = true
27+
cursor_cli_version = "latest"
28+
base_command = "status" # optional subcommand (default is chat mode)
29+
output_format = "json" # text | json | stream-json
30+
force = false
31+
model = "gpt-5"
32+
mcp_json = jsonencode({
3333
mcpServers = {
3434
# example project-specific servers (see docs)
3535
}

registry/coder-labs/modules/cursor-cli/cursor-cli.tftest.hcl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ run "non_interactive_mode" {
1818
command = plan
1919

2020
variables {
21-
agent_id = "test-agent"
22-
output_format = "json"
21+
agent_id = "test-agent"
22+
output_format = "json"
2323
}
2424

2525
assert {
@@ -53,8 +53,8 @@ run "additional_settings_propagated" {
5353
command = plan
5454

5555
variables {
56-
agent_id = "test-agent"
57-
mcp_json = jsonencode({ mcpServers = { foo = { command = "foo", type = "stdio" } } })
56+
agent_id = "test-agent"
57+
mcp_json = jsonencode({ mcpServers = { foo = { command = "foo", type = "stdio" } } })
5858
rules_files = {
5959
"global.yml" = "version: 1\nrules:\n - name: global\n include: ['**/*']\n description: global rule"
6060
}
@@ -68,7 +68,7 @@ run "additional_settings_propagated" {
6868

6969
// Ensure rules map is passed
7070
assert {
71-
condition = can(regex(base64encode(jsonencode({"global.yml":"version: 1\nrules:\n - name: global\n include: ['**/*']\n description: global rule"})), resource.coder_script.cursor_cli.script))
71+
condition = can(regex(base64encode(jsonencode({ "global.yml" : "version: 1\nrules:\n - name: global\n include: ['**/*']\n description: global rule" })), resource.coder_script.cursor_cli.script))
7272
error_message = "Expected PROJECT_RULES_JSON (base64) to be in the install step"
7373
}
7474
}
@@ -77,9 +77,9 @@ run "output_api_key" {
7777
command = plan
7878

7979
variables {
80-
agent_id = "test-agent"
81-
output_format = "json"
82-
api_key = "sk-test-123"
80+
agent_id = "test-agent"
81+
output_format = "json"
82+
api_key = "sk-test-123"
8383
}
8484

8585
assert {

0 commit comments

Comments
 (0)