Skip to content

Commit

Permalink
cmd/output: do not display cue code when value is a struct
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Alba <sam.alba@gmail.com>
  • Loading branch information
samalba committed Jun 7, 2021
1 parent 872822b commit a7f4cd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/dagger/cmd/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7f4cd0

Please sign in to comment.