def listAddableReleases(self, resourceName):

    # Print header
    print("The following releases are available for "+resourceName+".", file=sys.stdout)
    print("Add using: 'gkno add-resource "+resourceName+" --release <name>'", file=sys.stdout)
    print("", file=sys.stdout)

    # Lookup all possible releases for resource
    targetSettings = self.readTargetsFile(resourceName)
    allReleaseNames = []
    for target in targetSettings["targets"]:
      allReleaseNames.append(target["name"])

    # Lookup all user's releases for resource
    userReleaseNames = []
    if resourceName in self.userSettings["resources"]:
      for releaseName in self.userSettings["resources"][resourceName]["releases"]:
        userReleaseNames.append(releaseName)

    # Print release list
    for name in allReleaseNames:
      print("    ", sep="", end="", file=sys.stdout)
      if name in userReleaseNames:
        print("* ", sep="", end="", file=sys.stdout)
      else:
        print("  ", sep="", end="", file=sys.stdout)
      print(name, file=sys.stdout)
    print("", file=sys.stdout)

    # Print footer
    print("Releases preceded by a '*' have already been added.", file=sys.stdout)
    print("", file=sys.stdout)

  # Print a list of all genomes we have data for
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/adminUtils.py/adminUtils.listAddableReleases/original