MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / cache_list

Function cache_list

dwave/cloud/cli.py:1268–1279  ·  view source on GitHub ↗

List cache directories.

(*, config_file, profile, output)

Source from the content-addressed store, hash-verified

1266@config_file_options()
1267@standardized_output
1268def cache_list(*, config_file, profile, output):
1269 """List cache directories."""
1270
1271 config = validate_config_v1(load_config(config_file=config_file, profile=profile))
1272 info = _get_cache_info(config)
1273
1274 for name, collection in info.items():
1275 for stats in collection:
1276 output(f"{stats['path']}")
1277
1278 if not sum(map(len, info.values())):
1279 output("Cache empty.")
1280
1281
1282@cache.command(name='info')

Callers

nothing calls this directly

Calls 4

validate_config_v1Function · 0.90
load_configFunction · 0.90
_get_cache_infoFunction · 0.85
outputFunction · 0.85

Tested by

no test coverage detected