Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
Xiaoxuan Wang committed Dec 12, 2024
1 parent 3183bb4 commit 8997f95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/metadata/json/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (ph *PushHandler) OnCopied(opts *option.Target, root ocispec.Descriptor) er
return nil
}

// Render is called after the push is completed.
// Render implements PushHandler.
func (ph *PushHandler) Render() error {
return output.PrintPrettyJSON(ph.out, model.NewPush(ph.root, ph.path, ph.tagged.Tags()))
}
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/metadata/template/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (ph *PushHandler) OnCopied(opts *option.Target, root ocispec.Descriptor) er
return nil
}

// Render is called after the push is completed.
// Render implements PushHandler.
func (ph *PushHandler) Render() error {
return output.ParseAndWrite(ph.out, model.NewPush(ph.root, ph.path, ph.tagged.Tags()), ph.template)
}
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/metadata/text/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (h *PushHandler) OnCopied(opts *option.Target, root ocispec.Descriptor) err
return h.printer.Println("Pushed", opts.AnnotatedReference())
}

// Render is called after the push is completed.
// Render implements PushHandler.
func (h *PushHandler) Render() error {
err := h.printer.Println("ArtifactType:", h.root.ArtifactType)
if err != nil {
Expand Down

0 comments on commit 8997f95

Please sign in to comment.