You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/template-variables.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ STRUCT provides these built-in variables:
66
66
67
67
## Interactive Variables
68
68
69
-
Define variables that prompt users for input:
69
+
Define variables that prompt users for input. When running in interactive mode, STRUCT will display the variable's description to help users understand what value is expected:
70
70
71
71
```yaml
72
72
variables:
@@ -84,6 +84,39 @@ variables:
84
84
default: 8080
85
85
```
86
86
87
+
When prompted interactively, variables with descriptions will display with contextual icons, **bold variable names**, and clean formatting:
88
+
89
+
```
90
+
🚀 project_name: The name of your project
91
+
Enter value [MyProject]:
92
+
93
+
🌍 environment: Target deployment environment
94
+
Options: (1) dev, (2) staging, (3) prod
95
+
Enter value [dev]:
96
+
```
97
+
98
+
For variables without descriptions, a more compact format is used:
99
+
100
+
```
101
+
🔧 author_name []:
102
+
⚡ enable_logging [true]:
103
+
```
104
+
105
+
**Note**: Variable names appear in **bold** in actual terminal output for better readability.
106
+
107
+
**Contextual Icons**: STRUCT automatically selects appropriate icons based on variable names and types:
108
+
- 🚀 Project/app names
109
+
- 🌍 Environment/deployment variables
110
+
- 🔌 Ports/network settings
111
+
- 🗄️ Database configurations
112
+
- ⚡ Boolean/toggle options
113
+
- 🔐 Authentication/secrets
114
+
- 🏷️ Versions/tags
115
+
- 📁 Paths/directories
116
+
- 🔧 General variables
117
+
118
+
**Note**: The `description` field is displayed in interactive mode only. You can also use the legacy `help` field which works the same way.
0 commit comments