Skip to content

Flag to return single list #30

@ctomkow

Description

@ctomkow

If the result is a single list, have a --single flag to return just the JSON type (e.g. a list), not a value in a list. Currently, all JSON types are added to a list, even if it's just one list for consistency. Avoids a [0] or a pop() for nested lists situations. Just avoids dealing with a list result of one item when you know for sure only one value is found. I think this would be a bit cleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions