Created
January 27, 2017 14:10
-
-
Save Lawouach/27bca4374ce01b84639e954726e3080d to your computer and use it in GitHub Desktop.
Most basic Python Rug editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from typing import Dict, Any | |
__all__ = ["editor"] | |
def edit(project: Any, params: Dict[str, str]) -> Dict[str, str]: | |
""" | |
Log the project's name | |
""" | |
print(project.name()) | |
return {"status":"OK", "message": "Done!"} | |
editor = { | |
"tags": ["python"], | |
"name": "LogProjectName", | |
"description": "Log the project name", | |
"parameters": [], | |
"edit": edit | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment