Skip to content

bookshelf_producer.cli#

bookshelf_producer.cli #

Bookshelf CLI

main(ctx, quiet) #

Bookshelf for managing reusable datasets

Source code in packages/bookshelf-producer/src/bookshelf_producer/cli.py
@click.command(cls=_CLICommands, name="bookshelf")
@click.option("-q", "--quiet", is_flag=True)
@click_log.simple_verbosity_option(logger)  # type: ignore
@click.pass_context
def main(ctx, quiet) -> None:
    """
    Bookshelf for managing reusable datasets
    """
    ctx.ensure_object(dict)

    if not logger.hasHandlers():
        click_log.basic_config(logger)  # pragma: no cover

    logger.setLevel(logging.INFO)
    if quiet:
        logger.setLevel(logging.ERROR)