Skip to content

Commit

Permalink
refacor: update cue for better readability (#1176)
Browse files Browse the repository at this point in the history
Signed-off-by: Eren Cankurtaran <[email protected]>
  • Loading branch information
ieuD authored Feb 23, 2023
1 parent 18889ae commit 3194464
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/platform-engineers/cue/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,14 @@ parameter: {
outputs: [{ip: "1.1.1.1", hostname: "xxx.com"}, {ip: "2.2.2.2", hostname: "yyy.com"}]
}
output: {
spec: {
if len(parameter.outputs) > 0 {
_x: [ for _, v in parameter.outputs {
"\(v.ip) \(v.hostname)"
}]
message: "Visiting URL: " + strings.Join(_x, "")
}
}
spec: {
if len(parameter.outputs) > 0 {
_x: [ for _, v in parameter.outputs {
"\(v.ip) \(v.hostname)"
}]
message: "Visiting URL:\n" + strings.Join(_x, "\n")
}
}
}
```
Expand Down

0 comments on commit 3194464

Please sign in to comment.