Skip to content
Merged
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
1 change: 1 addition & 0 deletions docs/resources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ resource "coder_app" "vim" {
- `command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either `command` or `url` may be specified, but not both.
- `display_name` (String) A display name to identify the app. Defaults to the slug.
- `external` (Boolean) Specifies whether `url` is opened on the client machine instead of proxied through the workspace.
- `group` (String) The name of a group that this app belongs to.
- `healthcheck` (Block Set, Max: 1) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck))
- `hidden` (Boolean) Determines if the app is visible in the UI (minimum Coder version: v2.16).
- `icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with `"${data.coder_workspace.me.access_url}/icon/<path>"`.
Expand Down
6 changes: 6 additions & 0 deletions provider/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ func appResource() *schema.Resource {
},
},
},
"group": {
Type: schema.TypeString,
Description: "The name of a group that this app belongs to.",
ForceNew: true,
Optional: true,
},
"order": {
Type: schema.TypeInt,
Description: "The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).",
Expand Down
3 changes: 2 additions & 1 deletion provider/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func TestApp(t *testing.T) {
interval = 5
threshold = 6
}
group = "Apps"
order = 4
hidden = false
open_in = "slim-window"
Expand All @@ -63,6 +64,7 @@ func TestApp(t *testing.T) {
"healthcheck.0.url",
"healthcheck.0.interval",
"healthcheck.0.threshold",
"group",
"order",
"hidden",
"open_in",
Expand Down Expand Up @@ -476,5 +478,4 @@ func TestApp(t *testing.T) {
})
}
})

}
Loading