Skip to content

Commit

Permalink
chore: remove unneeded parse method (#1515)
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
  • Loading branch information
TerryHowe authored Oct 17, 2024
1 parent 0fd725a commit 97cb376
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/oras/internal/option/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,3 @@ func (opts *ArtifactPlatform) ApplyFlags(fs *pflag.FlagSet) {
opts.FlagDescription = "set artifact platform"
fs.StringVarP(&opts.platform, "artifact-platform", "", "", "[Experimental] "+opts.FlagDescription+" in the form of `os[/arch][/variant][:os_version]`")
}

// Parse parses the input platform flag to an oci platform type.
func (opts *ArtifactPlatform) Parse(cmd *cobra.Command) error {
return opts.Platform.Parse(cmd)
}

0 comments on commit 97cb376

Please sign in to comment.