-
Notifications
You must be signed in to change notification settings - Fork 177
Move the inspect command to "image inspect" #699
Conversation
Codecov Report
@@ Coverage Diff @@
## master #699 +/- ##
==========================================
+ Coverage 71.28% 71.34% +0.05%
==========================================
Files 56 59 +3
Lines 2929 2935 +6
==========================================
+ Hits 2088 2094 +6
Misses 567 567
Partials 274 274
Continue to review full report at Codecov.
|
736983d
to
3891788
Compare
@@ -16,6 +18,15 @@ type inspectOptions struct { | |||
pretty bool | |||
} | |||
|
|||
func muteDockerCli(dockerCli command.Cli) func() { |
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.
Shouldn't we make it public instead of duplicating it?
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.
I had a private conversation with @silvin-lubecki and:
- no idea where to put it
- it will go away soon because we started working on cnab-go to make it take an stdout so that we don't have to mute the cli any more
This is like a reminder for us that we really need to continue working on cnab-go
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.
👍
d566636
to
4f46f9e
Compare
The inspect command needed a bunch of code that was only present in the "internal/commands" package. The patch is big but it's only moving code around: * cnab.go was split into multiple files: * credentials.go -> all things credentials * driver/docker.go -> mainly for the driver.Prepare that all the commands use * registry.go -> has the method to get insecure registries from engine Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
a15220a
to
a91eb40
Compare
Cobra makes sure that it's thee Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
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.
LGTM
- What I did
The inspect command needed a bunch of code that was only present in the
"internal/commands" package. The patch is big but it's only moving code
around:
- A picture of a cute animal (not mandatory but encouraged)