コード例 #1
0
    def handle(self, *args: Any, **options: Optional[str]) -> None:
        if options["cache"] is not None:
            fill_remote_cache(options["cache"])
            return

        for cache in cache_fillers.keys():
            fill_remote_cache(cache)
コード例 #2
0
    def handle(self, *args: Any, **options: str) -> None:
        if options["cache"] is not None:
            fill_remote_cache(options["cache"])
            return

        for cache in cache_fillers.keys():
            fill_remote_cache(cache)
コード例 #3
0
    def handle(self, *args, **options):
        # type: (*Any, **str) -> None
        if options["cache"] is not None:
            fill_remote_cache(options["cache"])
            return

        for cache in cache_fillers.keys():
            fill_remote_cache(cache)
コード例 #4
0
    def handle(self, *args, **options):
        if options["cache"] is not None:
            return fill_remote_cache(options["cache"])

        for cache in cache_fillers.keys():
            fill_remote_cache(cache)
コード例 #5
0
 def add_arguments(self, parser: ArgumentParser) -> None:
     parser.add_argument(
         "--cache", help="Populate one specific cache", choices=cache_fillers.keys()
     )