From 3194464061bf175711e68da5994105b87206070c Mon Sep 17 00:00:00 2001 From: Eren Cankurtaran Date: Thu, 23 Feb 2023 04:35:53 +0300 Subject: [PATCH] refacor: update cue for better readability (#1176) Signed-off-by: Eren Cankurtaran --- docs/platform-engineers/cue/basic.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/platform-engineers/cue/basic.md b/docs/platform-engineers/cue/basic.md index 7ca5cc94ce3..573ab5d8886 100644 --- a/docs/platform-engineers/cue/basic.md +++ b/docs/platform-engineers/cue/basic.md @@ -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") + } + } } ```