Skip to content

Commit

Permalink
add flag docu
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Nov 7, 2024
1 parent 257329a commit 05cbf1b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions cmds/ocm/commands/ocmcmds/common/addhdlrs/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import (
)

type Options struct {
Replace bool
// Replace enables to replace existing elements (same raw identity) with a different version instead
// of appending a new element.
Replace bool
// PreserveSignature disables the modification of signature relevant information.
PreserveSignature bool
}

Expand Down Expand Up @@ -62,6 +65,9 @@ func (o *Options) Description() string {
return `
The <code>--replace</code> option allows users to specify whether adding an
element with the same name and extra identity but different version as an
existing element append (false) or replace (true) the existing element.
existing element, append (false) or replace (true) the existing element.
The <code>--preserve-signature</code> option prohibits changes of signature
relevant elements.
`
}
5 changes: 4 additions & 1 deletion docs/reference/ocm_add_componentversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ components will be added by value.

The <code>--replace</code> option allows users to specify whether adding an
element with the same name and extra identity but different version as an
existing element append (false) or replace (true) the existing element.
existing element, append (false) or replace (true) the existing element.

The <code>--preserve-signature</code> option prohibits changes of signature
relevant elements.


The source, resource and reference list can be composed according to the commands
Expand Down
5 changes: 4 additions & 1 deletion docs/reference/ocm_add_references.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ There are several templaters that can be selected by the <code>--templater</code

The <code>--replace</code> option allows users to specify whether adding an
element with the same name and extra identity but different version as an
existing element append (false) or replace (true) the existing element.
existing element, append (false) or replace (true) the existing element.

The <code>--preserve-signature</code> option prohibits changes of signature
relevant elements.


All yaml/json defined resources can be templated.
Expand Down
5 changes: 4 additions & 1 deletion docs/reference/ocm_add_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,10 @@ shown below.

The <code>--replace</code> option allows users to specify whether adding an
element with the same name and extra identity but different version as an
existing element append (false) or replace (true) the existing element.
existing element, append (false) or replace (true) the existing element.

The <code>--preserve-signature</code> option prohibits changes of signature
relevant elements.


All yaml/json defined resources can be templated.
Expand Down
5 changes: 4 additions & 1 deletion docs/reference/ocm_add_sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,10 @@ shown below.

The <code>--replace</code> option allows users to specify whether adding an
element with the same name and extra identity but different version as an
existing element append (false) or replace (true) the existing element.
existing element, append (false) or replace (true) the existing element.

The <code>--preserve-signature</code> option prohibits changes of signature
relevant elements.


All yaml/json defined resources can be templated.
Expand Down

0 comments on commit 05cbf1b

Please sign in to comment.