Skip to content

Commit

Permalink
(DEPRECATED) - Please use commontransportarchive instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmarf committed Jan 27, 2025
1 parent 7476452 commit 7adebf0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmds/ocm/commands/ocmcmds/componentarchive/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var Names = names.ComponentArchive
// NewCommand creates a new command.
func NewCommand(ctx clictx.Context) *cobra.Command {
cmd := utils.MassageCommand(&cobra.Command{
Short: "(DEPRECATED) Commands acting on component archives",
Short: "(DEPRECATED) - Please use " + names.CommonTransportArchive[0] + " instead",
// this removes the command from the help output - https://github.com/open-component-model/ocm/issues/1242#issuecomment-2609312927
// Deprecated: "Deprecated - use " + ocm.CommonTransportFormat + " instead",
}, Names...)
Expand Down
4 changes: 2 additions & 2 deletions cmds/ocm/commands/ocmcmds/componentarchive/transfer/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ func NewCommand(ctx clictx.Context, names ...string) *cobra.Command {
// Deprecated: Component Archive (CA) - https://kubernetes.slack.com/archives/C05UWBE8R1D/p1734357630853489
func (o *Command) ForName(name string) *cobra.Command {
return &cobra.Command{
Use: "[<options>] <source> <target>",
Use: "[<options>] <source> <target>",
Args: cobra.MinimumNArgs(2),
Short: "(DEPRECATED) transfer component archive to some component repository",
Short: "(DEPRECATED) - Please use " + names.CommonTransportArchive[0] + " instead",
// this removes the command from the help output - https://github.com/open-component-model/ocm/issues/1242#issuecomment-2609312927
// Deprecated: "Deprecated - use " + ocm.CommonTransportFormat + " instead",
Long: `
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ocm_ocm.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ocm ocm [<options>] <sub command> ...
##### Sub Commands

* ocm ocm <b>commontransportarchive</b> &mdash; Commands acting on common transport archives
* ocm ocm <b>componentarchive</b> &mdash; (DEPRECATED) Commands acting on component archives
* ocm ocm <b>componentarchive</b> &mdash; (DEPRECATED) - Please use commontransportarchive instead
* ocm ocm <b>componentversions</b> &mdash; Commands acting on components
* ocm ocm <b>plugins</b> &mdash; Commands related to OCM plugins
* ocm ocm <b>pubsub</b> &mdash; Commands acting on sub/sub specifications
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ocm_transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ ocm transfer [<options>] <sub command> ...

* [ocm transfer <b>artifacts</b>](ocm_transfer_artifacts.md) &mdash; transfer OCI artifacts
* [ocm transfer <b>commontransportarchive</b>](ocm_transfer_commontransportarchive.md) &mdash; transfer transport archive
* [ocm transfer <b>componentarchive</b>](ocm_transfer_componentarchive.md) &mdash; (DEPRECATED) transfer component archive to some component repository
* [ocm transfer <b>componentarchive</b>](ocm_transfer_componentarchive.md) &mdash; (DEPRECATED) - Please use commontransportarchive instead
* [ocm transfer <b>componentversions</b>](ocm_transfer_componentversions.md) &mdash; transfer component version

4 changes: 2 additions & 2 deletions docs/reference/ocm_transfer_componentarchive.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## ocm transfer componentarchive &mdash; (DEPRECATED) Transfer Component Archive To Some Component Repository
## ocm transfer componentarchive &mdash; (DEPRECATED) - Please Use Commontransportarchive Instead

### Synopsis

```bash
ocm transfer componentarchive [<options>] <source> <target>
ocm transfer componentarchive [<options>] <source> <target>
```

#### Aliases
Expand Down

0 comments on commit 7adebf0

Please sign in to comment.