Skip to content

Instantly share code, notes, and snippets.

@bparry02
Forked from ashcrow/parse_tag.py
Created February 8, 2021 14:10
Show Gist options
  • Select an option

  • Save bparry02/51486c4834cc468ee4858a6f36dce17a to your computer and use it in GitHub Desktop.

Select an option

Save bparry02/51486c4834cc468ee4858a6f36dce17a to your computer and use it in GitHub Desktop.
Quick and dirty parsing of tags
#!/usr/bin/env python
import json
import sys
def main():
for tag in json.loads(sys.stdin.read())['RepoTags']:
# Do your commands here
print(tag)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment