handlers
create_dict_handler(pretty, as_yaml)
¶
Create a json or yaml handler.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pretty |
bool
|
If true, t highlights the output. |
required |
as_yaml |
bool
|
If true, it formats using yaml. |
required |
Returns:
Type | Description |
---|---|
Callable[[Any], None]
|
A function that uses the arguments |