List cache directories.
(*, config_file, profile, output)
| 1266 | @config_file_options() |
| 1267 | @standardized_output |
| 1268 | def 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') |
nothing calls this directly
no test coverage detected