Skip to content

Cmd2 2.5.4 When a Custom Setting's onchange_cb Method is Used to Validate the Settable, Cmd2 Issues Misleading Output #1378

@eruber

Description

@eruber

Any validation changes made to a settable inside the onchange_cb method are correctly reflected in the set command's output table; however, Cmd2's interactive output during the update of the settable emits the original set value rather than the validated value set in the onchange_cb method.

Since the output from the onchange callback is before Cmd2's output, I was expecting the validated value to be used in Cmd2's output rather than the unvalidated value.

Here is an example output...

Cmd2-Custom-Settable-Output

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