-
Notifications
You must be signed in to change notification settings - Fork 177
[WIP] Add --digests flag to image ls command to show app image digests #677
Conversation
Signed-off-by: Jean-Christophe Sirot <jean-christophe.sirot@docker.com>
Codecov Report
@@ Coverage Diff @@
## master #677 +/- ##
=========================================
Coverage ? 70.91%
=========================================
Files ? 56
Lines ? 2912
Branches ? 0
=========================================
Hits ? 2065
Misses ? 582
Partials ? 265
Continue to review full report at Codecov.
|
return reference.FamiliarName(p.ref) | ||
}}, | ||
{"TAG", func(p pkg) string { | ||
t, ok := p.ref.(reference.Tagged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if t, ok := p.ref.(reference.Tagged); ok{
return t.Tag()
}
{"APP IMAGE", func(p pkg) string { | ||
return reference.FamiliarString(p.ref) | ||
}}, | ||
{"APP NAME", func(p pkg) string { | ||
return p.bundle.Name | ||
}}, | ||
} | ||
|
||
withDigestColumns = columns{ | ||
{"REPOSITORY", func(p pkg) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have REPOSITORY
and TAG
here, and not just APP IMAGE
and APP NAME
? 🤔
} | ||
return "<none>" | ||
}}, | ||
{"DIGEST", func(p pkg) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're missing a test on that part (with a golden file).
superseded by #709 |
- What I did
Add
--digests
flag todocker app image ls
command- How to verify it
the
docker app image ls --digests
should output a similar message in the console- A picture of a cute animal (not mandatory but encouraged)