MCPcopy Index your code
hub / github.com/dask/dask / config_get

Function config_get

dask/cli.py:59–72  ·  view source on GitHub ↗

Print config key, or the whole config.

(key=None)

Source from the content-addressed store, hash-verified

57@config.command(name="get")
58@click.argument("key", required=True)
59def config_get(key=None):
60 """Print config key, or the whole config."""
61 try:
62 data = reduce(lambda d, k: d[k], key.split("."), dask.config.config)
63 except (KeyError, TypeError):
64 click.echo(click.style(f"Section not found: {key}", fg="red"), err=True)
65 sys.exit(1)
66
67 if isinstance(data, (list, dict)):
68 click.echo_via_pager(yaml.dump(data))
69 elif data is None:
70 click.echo("None")
71 else:
72 click.echo(data)
73
74
75@config.command(name="find")

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…