Print artifact source and revision only when available

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
pull/4284/head
Ilya Dmitrichenko 1 year ago committed by Stefan Prodan
parent e9d4b42b12
commit b46e298b4d
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -111,8 +111,12 @@ func pullArtifactCmdRun(cmd *cobra.Command, args []string) error {
return err return err
} }
logger.Successf("source %s", meta.Source) if meta.Source != "" {
logger.Successf("revision %s", meta.Revision) logger.Successf("source %s", meta.Source)
}
if meta.Revision != "" {
logger.Successf("revision %s", meta.Revision)
}
logger.Successf("digest %s", meta.Digest) logger.Successf("digest %s", meta.Digest)
logger.Successf("artifact content extracted to %s", pullArtifactArgs.output) logger.Successf("artifact content extracted to %s", pullArtifactArgs.output)

Loading…
Cancel
Save