def run(config, action):
    """
    Execute tmux or git workspace related actions
    """
    if action in WORKSPACE_COMMANDS:
        workspace = Workspace(config)
        getattr(workspace, action)()

    # Or, git related actions
    elif action in GIT_COMMANDS:
        git = Git(config)
        getattr(git, action)()
dataset/ETHPy150Open rafi/mx/src/mx/cli.py/run/original