This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ func getImageListColumns(options imageListOption) []imageListColumn {
148
148
if n , ok := p .ref .(reference.Named ); ok {
149
149
return reference .FamiliarName (n )
150
150
}
151
- return reference . FamiliarString ( p . ref )
151
+ return "<none>"
152
152
}},
153
153
{"TAG" , func (p pkg ) string {
154
154
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) {
75
75
}{
76
76
{
77
77
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
82
82
` ,
83
83
options : imageListOption {},
84
84
},
85
85
{
86
86
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
91
91
` ,
92
92
options : imageListOption {digests : true },
93
93
},
You can’t perform that action at this time.
0 commit comments