in pantri/scripts/pantri.py [0:0]
def retrieve(options: Dict[str, Any]) -> None:
# check if git repo was update before retrieving files.
pantri = Pantri(options)
if pantri.nothing_to_retrieve():
logging.getLogger("pantri").info(
"it-bin repo already up-to-date. " "Use -f/--force to override"
)
return
# In order to selectively choose which shelves to retrieve and have
# different options per shelf, need to call "pantri.retrieve()" for each
# shelf.
if "shelf" in options:
for shelf in options["shelf"]:
options["shelf"] = shelf
pantri = Pantri(options)
pantri.retrieve()
else:
pantri = Pantri(options)
pantri.retrieve()