Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
Xiaoxuan Wang committed Sep 23, 2024
1 parent 3c9aedf commit 1b039e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/oras/internal/option/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
errAnnotationDuplication = errors.New("duplicate annotation key")
)

// Packer option struct.
// Annotation option struct.
type Annotation struct {
// ManifestAnnotations contains raw input of manifest annotation "key=value" pairs
ManifestAnnotations []string
Expand All @@ -44,6 +44,7 @@ func (opts *Annotation) ApplyFlags(fs *pflag.FlagSet) {
fs.StringArrayVarP(&opts.ManifestAnnotations, "annotation", "a", nil, "manifest annotations")
}

// Parse parses the input annotation flags.
func (opts *Annotation) Parse(*cobra.Command) error {
manifestAnnotations := make(map[string]string)
for _, anno := range opts.ManifestAnnotations {
Expand Down

0 comments on commit 1b039e4

Please sign in to comment.