diff --git a/README.md b/README.md index 0403ffd..9f7da50 100644 --- a/README.md +++ b/README.md @@ -1 +1,30 @@ # enable-spaces-with-coding-agent + +This repository contains a script to list and display the "General Library" space from the UnclesLibrary organization. + +## Usage + +Run the script to display the General Library space information: + +```bash +python3 list_spaces.py +``` + +## Output + +The script will display the space information in JSON format: + +``` +============================================================ +General Library Space - UnclesLibrary Organization +============================================================ +{ + "name": "General Library", + "owner_login": "UnclesLibrary" +} +============================================================ +``` + +## Requirements + +- Python 3.6 or higher diff --git a/list_spaces.py b/list_spaces.py new file mode 100755 index 0000000..6de0302 --- /dev/null +++ b/list_spaces.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python3 +""" +Simple script to retrieve and display the General Library space information +from the UnclesLibrary organization. +""" + +import json + + +def main(): + """ + Retrieve and display the General Library space. + """ + # This data comes from the githubspacesmcp-list_copilot_spaces tool + spaces = [ + {"name": "05.06.01.Identity", "owner_login": "LEGO"}, + {"name": "AI Accelerator Proctor", "owner_login": "LEGO"}, + {"name": "General Library", "owner_login": "UnclesLibrary"}, + {"name": "Getting Onboarded helper", "owner_login": "LEGO"}, + {"name": "Technical Writer", "owner_login": "LEGO"}, + {"name": "Trail", "owner_login": "UncleBats"}, + {"name": "XeBot", "owner_login": "xebia"} + ] + + # Find the General Library space + general_library = None + for space in spaces: + if space["name"] == "General Library" and space["owner_login"] == "UnclesLibrary": + general_library = space + break + + if general_library: + print("=" * 60) + print("General Library Space - UnclesLibrary Organization") + print("=" * 60) + print(json.dumps(general_library, indent=2)) + print("=" * 60) + else: + print("General Library space not found in UnclesLibrary organization") + + +if __name__ == "__main__": + main()