Example #1
0
    def Run(self, args):
        """This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      A list of Docker images.
    """
        return util.ListRepositories(args)
Example #2
0
    def Run(self, args):
        """This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      A list of Docker images.
    """
        repos, buckets, project = util.ListRepositories(args)
        gcr_repos = util.GetGCRRepos(buckets, project)
        if gcr_repos:
            log.status.Print(
                "Note: To perform actions on the Container Registry repositories "
                "listed below please use 'gcloud container images'.\n")
        return {"AR": repos, "GCR": gcr_repos}