From a7f4cd069fb1eca21a746e483fd321f5dc49d7a0 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 7 Jun 2021 13:27:40 +0200 Subject: [PATCH] cmd/output: do not display cue code when value is a struct Signed-off-by: Sam Alba --- cmd/dagger/cmd/common/common.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/dagger/cmd/common/common.go b/cmd/dagger/cmd/common/common.go index 712757f2..b2f2f847 100644 --- a/cmd/dagger/cmd/common/common.go +++ b/cmd/dagger/cmd/common/common.go @@ -112,6 +112,10 @@ func FormatValue(val *compiler.Value) string { if val.IsConcreteR() != nil { return val.IncompleteKindString() } + if val.IncompleteKindString() == "struct" { + return "struct" + } + // value representation in Cue valStr := fmt.Sprintf("%v", val.Cue()) // escape \n