Skip to content

Cancel "-clean" when latest version does not exist #2

@cweiske

Description

@cweiske

I made a typo in the latest version number (1.2.3 instead of v1.2.3) and now no versions are active anymore.

dtrack-cli should cancel the process if the version given does not exist.

$ dtrack-cli -url https://deptrack -clean -latest $DEPTRACK_API_KEY project-node 1.5.8
Fetching all project versions...
Updating Lifecycle...
 -> Patching develop-tmp: map[active:false]
 -> Patching v1.3.0: map[active:false]
 -> Patching v1.3.1: map[active:false]
 -> Patching 1.3.2: map[active:false]
 -> Patching 1.3.3: map[active:false]
 -> Patching 1.3.4: map[active:false]
 -> Patching v1.3.4: map[active:false]
 -> Patching 1.3.5: map[active:false]
 -> Patching v1.3.5: map[active:false]
 -> Patching v1.3.6: map[active:false]
 -> Patching v1.3.7: map[active:false]
 -> Patching v1.4.0: map[active:false]
 -> Patching v1.4.1: map[active:false]
 -> Patching v1.4.2: map[active:false]
 -> Patching v1.5.0: map[active:false]
 -> Patching v1.5.1: map[active:false]
 -> Patching v1.5.2: map[active:false]
 -> Patching v1.5.3: map[active:false]
 -> Patching v1.5.4: map[active:false]
 -> Patching v1.5.5: map[active:false]
 -> Patching v1.5.6: map[active:false]
 -> Patching v1.5.7: map[active:false]
 -> Patching v1.5.8: map[active:false]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions