(ctx, output_format)
Set the output format.

    Args:
        ctx: Click CLI context object.
        output_format: Format to use for output text.
Set the output format.
Set the output format .
def set_output_format(ctx, output_format):
    """Set the output format.

    Args:
        ctx: Click CLI context object.
        output_format: Format to use for output text.
    """
    if output_format not in SUPPORTED_OUTPUT_FORMATS:
        supported_formats = ' '.join(SUPPORTED_OUTPUT_FORMATS)
        click.echo(f'Unsupported format. Choose between {supported_formats}')
        sys.exit(1)

    ctx.obj.config_assistant.set_config('output_format', output_format)
    ctx.obj.config_assistant.save_config()
def set_output_format ( ctx , output_format ) : if output_format not in SUPPORTED_OUTPUT_FORMATS : supported_formats = ' ' . join ( SUPPORTED_OUTPUT_FORMATS ) click . echo ( f'Unsupported format. Choose between {supported_formats}' ) sys . exit ( 1 ) ctx . obj . config_assistant . set_config ( 'output_format' , output_format ) ctx . obj . config_assistant . save_config ( )