Skip to content

Commit d417d06

Browse files
committed
list/tree: Add an experimental warning
Signed-off-by: Paweł Gronowski <[email protected]>
1 parent b1a08f7 commit d417d06

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cli/command/image/tree.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
118118
width = 20
119119
}
120120

121+
warningColor := aec.LightYellowF
121122
headerColor := aec.NewBuilder(aec.DefaultF, aec.Bold).ANSI
122123
topNameColor := aec.NewBuilder(aec.BlueF, aec.Underline, aec.Bold).ANSI
123124
normalColor := aec.NewBuilder(aec.DefaultF).ANSI
@@ -127,8 +128,11 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
127128
topNameColor = noColor{}
128129
normalColor = noColor{}
129130
greenColor = noColor{}
131+
warningColor = noColor{}
130132
}
131133

134+
_, _ = fmt.Fprintln(out, warningColor.Apply("WARNING: This is an experimental feature. The output may change and shouldn't be depended on."))
135+
132136
columns := []imgColumn{
133137
{
134138
Title: "Image",

0 commit comments

Comments
 (0)