Skip to content

Commit 611aa6e

Browse files
committed
scaffold-controller: Make difference between questions more obvious
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 8a24e5c commit 611aa6e

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

cmd/scaffold-controller/main.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ func main() {
140140
}
141141

142142
if len(fields.RequiredCreateDependencies) == 0 {
143-
answer := getUserInput("Does this resource have required dependencies upon creation? "+
144-
"List all the resources it must depend on. "+
145-
"Provide this as a comma-separated list, for example: Subnet, Port, Project", interactive)
143+
answer := getUserInput("Does this resource have **required** dependencies upon creation? "+
144+
"List all the resources it **must** depend on, if any. "+
145+
"Provide this as a comma-separated list or omit if there are no dependencies. "+
146+
"For example: Subnet, Port, Project", interactive)
146147
dependencies := strings.Split(answer, ",")
147148
for _, dep := range dependencies {
148149
trimmedDep := strings.TrimSpace(dep)
@@ -153,9 +154,10 @@ func main() {
153154
}
154155

155156
if len(fields.OptionalCreateDependencies) == 0 {
156-
answer := getUserInput("Does this resource have optional dependencies upon creation? "+
157-
"List all the resources it optionally depend on. "+
158-
"Provide this as a comma-separated list, for example: Subnet, Port, Project", interactive)
157+
answer := getUserInput("Does this resource have **optional** dependencies upon creation? "+
158+
"List all the resources it **optionally** depends on, if any. "+
159+
"Provide this as a comma-separated list or omit if there are no dependencies. "+
160+
"For example: Subnet, Port, Project", interactive)
159161
dependencies := strings.Split(answer, ",")
160162
for _, dep := range dependencies {
161163
trimmedDep := strings.TrimSpace(dep)
@@ -168,7 +170,8 @@ func main() {
168170
if len(fields.ImportDependencies) == 0 {
169171
answer := getUserInput("Does this resource have dependencies upon import? "+
170172
"List all the resources it can depend on. "+
171-
"Provide this as a comma-separated list, for example: Subnet, Port, Project", interactive)
173+
"Provide this as a comma-separated list or omit if there are no dependencies. "+
174+
"For example: Subnet, Port, Project", interactive)
172175
dependencies := strings.Split(answer, ",")
173176
for _, dep := range dependencies {
174177
trimmedDep := strings.TrimSpace(dep)

0 commit comments

Comments
 (0)