Skip to content

Add run-template:clone command (disabled by default) #57

Description

@Vitexus

Request

Add CLI parity for the web UI's RunTemplate clone action: a run-template:clone command that copies a template's config, saved env values, and credential assignments into a new RunTemplate.

Per the underlying bug (web clone copied active verbatim from the source, letting a cloned-and-not-yet-reviewed template be scheduled — VitexSoftware/multiflexi-web#8), the CLI clone must also always create the new RunTemplate disabled.

Fix

Add RunTemplate::cloneAs() in core (always sets active=false) and a run-template:clone --id=<id> [--name=<name>] command that uses it.

Fixed by: #56
Depends on core: VitexSoftware/php-vitexsoftware-multiflexi-core#53
Docs: VitexSoftware/multiflexi-doc-en#7

For SpojeNetIT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions