Skip to content

Validate and allow case insensitivity for item types in all clients and show options in CLI #903

Closed
@kevinlacaille

Description

@kevinlacaille

Same as #599, but for Orders and Subscriptions clients and CLIs. Also, ensure that when calling --help in the CLI that all valid options are returned.

Data:
In need of epilog for --help command:

Add @data.command(epilog=valid_item_string)

  • search-update
  • asset-download
  • asset-activate
  • asset-wait

In need of validation to allow case insensitivity:

  • asset-download
  • asset-activate
  • asset-wait

Orders:
N/A

Subscriptions:
In need of epilog for --help command:

  • request-catalog
    Since -item-type is an option for this function, we can just add the following for its type (as we do for the Orders CLI):
    type=click.Choice(get_item_types(), case_sensitive=False)

In need of validation to ensure valid item types and asset types

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions