Exemple #1
0
def clean_unused_caches() -> None:
    args = argparse.Namespace(
        threshold_days=6,
        # The defaults here should match parse_cache_script_args in zulip_tools.py
        dry_run=False,
        verbose=False,
        no_headings=True,
    )
    from scripts.lib import clean_emoji_cache, clean_node_cache, clean_venv_cache
    clean_venv_cache.main(args)
    clean_node_cache.main(args)
    clean_emoji_cache.main(args)
def main(args: argparse.Namespace) -> None:
    os.chdir(ZULIP_PATH)
    clean_venv_cache.main(args)
    clean_node_cache.main(args)
    clean_yarn_cache.main(args)
    clean_emoji_cache.main(args)