Skip to content

Commit

Permalink
extend success messages for extensions and buildpack package
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
  • Loading branch information
itsdarshankumar committed Mar 24, 2023
1 parent 747d127 commit ab3f5f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion internal/commands/buildpack_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ func BuildpackPackage(logger logging.Logger, cfg config.Config, packager Buildpa
if flags.Publish {
action = "published"
}
location := "docker daemon"
if flags.Format == client.FormatFile {
location = "file"
}

logger.Infof("Successfully %s package %s", action, style.Symbol(name))
logger.Infof("Successfully %s package %s and saved to %s", action, style.Symbol(name), location)
return nil
}),
}
Expand Down
6 changes: 5 additions & 1 deletion internal/commands/extension_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ func ExtensionPackage(logger logging.Logger, cfg config.Config, packager Extensi
if flags.Publish {
action = "published"
}
location := "docker daemon"
if flags.Format == client.FormatFile {
location = "file"
}

logger.Infof("Successfully %s package %s", action, style.Symbol(name))
logger.Infof("Successfully %s package %s and saved to %s", action, style.Symbol(name), location)
return nil
}),
}
Expand Down

0 comments on commit ab3f5f0

Please sign in to comment.