Skip to content

climate_ref.cli.config #

View and update the REF configuration

list_(ctx) #

Print the current climate_ref configuration

If a configuration directory is provided, the configuration will attempt to load from the specified directory.

Source code in packages/climate-ref/src/climate_ref/cli/config.py
@app.command(name="list")
def list_(ctx: typer.Context) -> None:
    """
    Print the current climate_ref configuration

    If a configuration directory is provided,
    the configuration will attempt to load from the specified directory.
    """
    config = ctx.obj.config

    print(config.dumps(defaults=True))