Commit 64a5557
committed
feat: migrate stacks/app_pipeline.go from survey to huh
Replace all survey-based prompts in AppStack with huh form builders.
Extract pure form builder functions for each prompt (repository URL,
branch, domains, healthcheck path, S3 buckets, SQS, database, Redis,
SES, users, data-loss confirm) and update AskForDatabase, AskForRedis,
AskForSES, WarnIfDataLoss, and AskQuestions to call them.
Remove databaseSelectTransform and redisSelectTransform — replaced by
typed huh.NewOption[string] values that carry the full stack name
directly.
Update cmd/modify.go askModifyQuestions to use the new huh form
builders (AppRepositoryURLForm, AppBranchForm, AppDomainsForm,
AppHealthCheckPathForm) instead of the removed survey-based helpers.
Add table-driven uitest tests for every new form builder.
Closes #1231 parent b3b6c37 commit 64a5557
3 files changed
Lines changed: 896 additions & 291 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| 97 | + | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | 103 | | |
106 | 104 | | |
107 | | - | |
108 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
112 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
113 | 127 | | |
114 | | - | |
| 128 | + | |
115 | 129 | | |
116 | 130 | | |
117 | 131 | | |
| |||
0 commit comments