Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d77d4a8

Browse files
feat(cursor): added slug variable to cursor module (#87)
Co-authored-by: M Atif Ali <[email protected]>
1 parent c4b106b commit d77d4a8

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

registry/coder/modules/cursor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder)
1717
module "cursor" {
1818
count = data.coder_workspace.me.start_count
1919
source = "registry.coder.com/coder/cursor/coder"
20-
version = "1.0.19"
20+
version = "1.1.0"
2121
agent_id = coder_agent.example.id
2222
}
2323
```
@@ -30,7 +30,7 @@ module "cursor" {
3030
module "cursor" {
3131
count = data.coder_workspace.me.start_count
3232
source = "registry.coder.com/coder/cursor/coder"
33-
version = "1.0.19"
33+
version = "1.1.0"
3434
agent_id = coder_agent.example.id
3535
folder = "/home/coder/project"
3636
}

registry/coder/modules/cursor/main.tf

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,27 @@ variable "order" {
3232
default = null
3333
}
3434

35+
variable "slug" {
36+
type = string
37+
description = "The slug of the app."
38+
default = "cursor"
39+
}
40+
41+
variable "display_name" {
42+
type = string
43+
description = "The display name of the app."
44+
default = "Cursor Desktop"
45+
}
46+
3547
data "coder_workspace" "me" {}
3648
data "coder_workspace_owner" "me" {}
3749

3850
resource "coder_app" "cursor" {
3951
agent_id = var.agent_id
4052
external = true
4153
icon = "/icon/cursor.svg"
42-
slug = "cursor"
43-
display_name = "Cursor Desktop"
54+
slug = var.slug
55+
display_name = var.display_name
4456
order = var.order
4557
url = join("", [
4658
"cursor://coder.coder-remote/open",

0 commit comments

Comments
 (0)