From 91c2acd564b1c10880d373cae649733cc3b58601 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 31 May 2021 15:21:39 +0200 Subject: [PATCH] cmd/input: list filters out \\n Signed-off-by: Sam Alba --- cmd/dagger/cmd/input/list.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/dagger/cmd/input/list.go b/cmd/dagger/cmd/input/list.go index 7f23e167..4135085b 100644 --- a/cmd/dagger/cmd/input/list.go +++ b/cmd/dagger/cmd/input/list.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "strings" "text/tabwriter" "go.dagger.io/dagger/client" @@ -65,6 +66,8 @@ var listCmd = &cobra.Command{ valStr = fmt.Sprintf("%s (default)", valStr) } + valStr = strings.ReplaceAll(valStr, "\n", "\\n") + if !viper.GetBool("all") { // skip input that is not overridable if !hasDefault && isConcrete {