gamesheet_sdk.admin.cli.shared.decorators module¶
Common CLI option decorators.
- gamesheet_sdk.admin.cli.shared.decorators.columns_option(func)[source]¶
Add the –columns option that restricts output to a subset of keys.
One option covers both shapes of output: on a
listit selects table columns, and on aget/create/updateit selects fields of the single rendered object. Both are “show me only these keys”, so there is one name for it, and-fis left to mean--forceeverywhere.- Parameters:
func (F) – The Click command function to decorate.
- Returns:
F – The decorated function with the –columns option.
- Return type:
F
- gamesheet_sdk.admin.cli.shared.decorators.common_output_options(func)[source]¶
Add standard –format and –output options to command.
- Parameters:
func (F) – The Click command function to decorate
- Returns:
F – The decorated function with –format and –output options
- Return type:
F
- gamesheet_sdk.admin.cli.shared.decorators.player_update_options(func)[source]¶
Add common player update options.
- Parameters:
func (F) – The Click command function to decorate
- Returns:
F – The decorated function with player update options
- Return type:
F