Skip to content

Instantly share code, notes, and snippets.

@maliciousgroup
Last active April 7, 2021 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maliciousgroup/17a93142ab471cb6b37191cee2768ca5 to your computer and use it in GitHub Desktop.
Save maliciousgroup/17a93142ab471cb6b37191cee2768ca5 to your computer and use it in GitHub Desktop.
CommandRegistry.py
global_command_registry: dict = {}
class CommandRegistry(object):
def __init__(self, cls):
if cls.__name__ not in global_command_registry:
global_command_registry[cls.__name__] = cls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment