def METHOD_NAME(ctx, buildroot: Path, **kwargs):
    url = kwargs["url"]
    if not url:
        if not ELASTICSEARCH_URL:
            # The reason we're not throwing an error is to make it super convenient
            # to call this command, from bash, without first having to check and figure
            # out if the relevant environment variables are available.
            log.warning("DEPLOYER_ELASTICSEARCH_URL or --url not set or empty")
            return
        raise Exception("url not set")
    search.index(
        buildroot,
        url,
        update=kwargs["update"],
        no_progressbar=kwargs["no_progressbar"],
    )