Skip to content

Add regex parameter to .argument #1953

@MaxumCSmith

Description

@MaxumCSmith

I find myself having to validate arguments more thoroughly using Regex. I end up doing this from within the action method, but it would be nice if we could pass another parameter into .argument as a regex that would be used to validate.

Maybe something like this would be nice?

argument(name: string, description?: string, defaultValue?: unknown): this; -> argument(name: string, description?: string, defaultValue?: unknown, validationRegex: Regex): this;

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