Skip to content

Commit 4edcb00

Browse files
committed
refactor(cursor-cli): remove output_format variable and related script arguments
- Eliminated the `output_format` variable from main.tf and removed associated logic from start.sh to simplify the script and reduce complexity.
1 parent 8b6b659 commit 4edcb00

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

registry/coder-labs/modules/cursor-cli/main.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ variable "model" {
6868
default = ""
6969
}
7070

71-
variable "output_format" {
72-
type = string
73-
description = "Output format with -p: text, json, or stream-json."
74-
default = ""
75-
}
76-
7771
variable "ai_prompt" {
7872
type = string
7973
description = "AI prompt/task passed to cursor-agent."
@@ -176,7 +170,6 @@ resource "coder_script" "cursor_cli" {
176170
chmod +x /tmp/start.sh
177171
FORCE='${var.force}' \
178172
MODEL='${var.model}' \
179-
OUTPUT_FORMAT='${var.output_format}' \
180173
AI_PROMPT='${var.ai_prompt}' \
181174
MODULE_DIR_NAME='${local.module_dir_name}' \
182175
FOLDER='${var.folder}' \

registry/coder-labs/modules/cursor-cli/scripts/start.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ if [ "$FORCE" = "true" ]; then
4545
ARGS+=("-f")
4646
fi
4747

48-
ARGS+=("-p")
49-
if [ -n "$OUTPUT_FORMAT" ]; then
50-
ARGS+=("--output-format" "$OUTPUT_FORMAT")
51-
fi
5248
if [ -n "$AI_PROMPT" ]; then
5349
ARGS+=("$AI_PROMPT")
5450
fi

0 commit comments

Comments
 (0)