Skip to content

Sanitize version arguments passed in the CLI #1

Open
@jstolarek

Description

@jstolarek

Description

At the moment version arguments passed on the command line are not sanitized in any way, making it possible to pass nonsense values e.g. negative integers can be passed. We should validate that this values are correct. Probably the safest approach is to define a set of permitted version values.

Also, when calling the update-version command we need to make sure that oldVersion < newVersion.

Tests

Not sure about testing this since this is purely a UI feature. Perhaps e2e testing could verify that the command line interface fails when called with incorrect values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UXCLI interface and user experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions