@click.group()<EOL>@click.version_option(version=riemann_client.__version__)<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.STRING, default='<STR_LIT:localhost>',<EOL>envvar='<STR_LIT>', help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.INT, default=<NUM_LIT>,<EOL>envvar='<STR_LIT>', help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', default='<STR_LIT>',<EOL>type=click.Choice(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT:none>']),<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.FLOAT, default=None,<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.Path(),<EOL>help='<STR_LIT>')<EOL>@click.pass_context<EOL>def main(ctx, host, port, transport_type, timeout, ca_certs):
if transport_type == '<STR_LIT>':<EOL><INDENT>if timeout is not None:<EOL><INDENT>ctx.fail('<STR_LIT>')<EOL><DEDENT>transport = riemann_client.transport.UDPTransport(host, port)<EOL><DEDENT>elif transport_type == '<STR_LIT>':<EOL><INDENT>transport = riemann_client.transport.TCPTransport(host, port, timeout)<EOL><DEDENT>elif transport_type == '<STR_LIT>':<EOL><INDENT>if ca_certs is None:<EOL><INDENT>ctx.fail('<STR_LIT>')<EOL><DEDENT>transport = riemann_client.transport.TLSTransport(<EOL>host, port, timeout, ca_certs)<EOL><DEDENT>elif transport_type == '<STR_LIT:none>':<EOL><INDENT>transport = riemann_client.transport.BlankTransport()<EOL><DEDENT>ctx.obj = transport<EOL>
Connects to a Riemann server to send events or query the index

    By default, will attempt to contact Riemann on localhost:5555 over TCP. The
    RIEMANN_HOST and RIEMANN_PORT environment variables can be used to
    configure the host and port used. Command line parameters will override the
    environment variables.

    Use `-T none` to test commands without actually connecting to a server.