Skip to content

Commit b87f175

Browse files
leogrpoiana
authored andcommitted
chore(cmd): use functional opts
Co-authored-by: Aldo Lacuku <[email protected]> Co-authored-by: Lorenzo Susini <[email protected]> Signed-off-by: Leonardo Grasso <[email protected]>
1 parent 7a588bf commit b87f175

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/registry_push.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ func (o *pushOptions) RunPush(ctx context.Context, args []string) error {
122122

123123
pusher := ocipusher.NewPusher(client, newPushProgressTracker(o.Printer))
124124

125-
res, err := pusher.Push(ctx, o.ArtifactType, path, ref, o.Platform, o.Dependencies...)
125+
res, err := pusher.Push(
126+
ctx, o.ArtifactType, path, ref,
127+
ocipusher.WithPlatform(o.Platform),
128+
ocipusher.WithDependencies(o.Dependencies...),
129+
)
126130
if err != nil {
127131
return err
128132
}

0 commit comments

Comments
 (0)