From d417d0668264726cd16592ddc20060f8db5e9961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 16 Aug 2024 13:50:03 +0200 Subject: [PATCH] list/tree: Add an experimental warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- cli/command/image/tree.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/command/image/tree.go b/cli/command/image/tree.go index 868c68582..ffaa70711 100644 --- a/cli/command/image/tree.go +++ b/cli/command/image/tree.go @@ -118,6 +118,7 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error { width = 20 } + warningColor := aec.LightYellowF headerColor := aec.NewBuilder(aec.DefaultF, aec.Bold).ANSI topNameColor := aec.NewBuilder(aec.BlueF, aec.Underline, aec.Bold).ANSI normalColor := aec.NewBuilder(aec.DefaultF).ANSI @@ -127,8 +128,11 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error { topNameColor = noColor{} normalColor = noColor{} greenColor = noColor{} + warningColor = noColor{} } + _, _ = fmt.Fprintln(out, warningColor.Apply("WARNING: This is an experimental feature. The output may change and shouldn't be depended on.")) + columns := []imgColumn{ { Title: "Image",