Skip to content

Make quotes optional in filters #93

@lemaitre-aneo

Description

@lemaitre-aneo

It would be nice to have the need for quotes in the definition of filters:

$ armonik -e localhost:8081 task list -f 'id = 9a5fc098-e677-4b97-9996-fc4b5303d97e'
                                                                     
 Usage: armonik task list [OPTIONS]                                  
                                                                     
 Try 'armonik task list -h' for help                                 
╭─ Error ───────────────────────────────────────────────────────────╮
│ Invalid value for '-f' / '--filter': Filter syntax error.         │
│                                                                   │
│         id = 9a5fc098-e677-4b97-9996-fc4b5303d97e                 │
│               ^                                                   │
│                                                                   │
│ Invalid boolean operator.                                         │
╰───────────────────────────────────────────────────────────────────╯

By the way, the error reported is badly located, and not very explicit.

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