osbuild/copy: add support for remove_destination option
Add support for newly added `remove_destination` option in the copy stage. Related to https://github.com/osbuild/osbuild/pull/1241 Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
19e38621c9
commit
ad860a6dd4
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ type CopyStageOptions struct {
|
|||
type CopyStagePath struct {
|
||||
From string `json:"from"`
|
||||
To string `json:"to"`
|
||||
|
||||
// Remove the destination before copying. Works only for files, not directories.
|
||||
// Default: false
|
||||
RemoveDestination bool `json:"remove_destination,omitempty"`
|
||||
}
|
||||
|
||||
func (CopyStageOptions) isStageOptions() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue