This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ func getImageListColumns(options imageListOption) []imageListColumn {
148148 if n , ok := p .ref .(reference.Named ); ok {
149149 return reference .FamiliarName (n )
150150 }
151- return reference . FamiliarString ( p . ref )
151+ return "<none>"
152152 }},
153153 {"TAG" , func (p pkg ) string {
154154 if t , ok := p .ref .(reference.Tagged ); ok {
Original file line number Diff line number Diff line change @@ -75,19 +75,19 @@ func TestListCmd(t *testing.T) {
7575 }{
7676 {
7777 name : "TestList" ,
78- expectedOutput : `REPOSITORY TAG APP IMAGE ID APP NAME
79- foo/bar <none> 3f825b2d0657 Digested App
80- foo/bar 1.0 9aae408ee04f Foo App
81- a855ac937f2ed375ba4396bbc49c4093e124da933acd2713fb9bc17d7562a087 <none> a855ac937f2e Quiet App
78+ expectedOutput : `REPOSITORY TAG APP IMAGE ID APP NAME
79+ foo/bar <none> 3f825b2d0657 Digested App
80+ foo/bar 1.0 9aae408ee04f Foo App
81+ <none> <none> a855ac937f2e Quiet App
8282` ,
8383 options : imageListOption {},
8484 },
8585 {
8686 name : "TestListWithDigests" ,
87- expectedOutput : `REPOSITORY TAG DIGEST APP IMAGE ID APP NAME
88- foo/bar <none> sha256:b59492bb814012ca3d2ce0b6728242d96b4af41687cc82166a4b5d7f2d9fb865 3f825b2d0657 Digested App
89- foo/bar 1.0 <none> 9aae408ee04f Foo App
90- a855ac937f2ed375ba4396bbc49c4093e124da933acd2713fb9bc17d7562a087 <none> sha256:a855ac937f2ed375ba4396bbc49c4093e124da933acd2713fb9bc17d7562a087 a855ac937f2e Quiet App
87+ expectedOutput : `REPOSITORY TAG DIGEST APP IMAGE ID APP NAME
88+ foo/bar <none> sha256:b59492bb814012ca3d2ce0b6728242d96b4af41687cc82166a4b5d7f2d9fb865 3f825b2d0657 Digested App
89+ foo/bar 1.0 <none> 9aae408ee04f Foo App
90+ <none> <none> sha256:a855ac937f2ed375ba4396bbc49c4093e124da933acd2713fb9bc17d7562a087 a855ac937f2e Quiet App
9191` ,
9292 options : imageListOption {digests : true },
9393 },
You can’t perform that action at this time.
0 commit comments