Commit 5cdde81c authored by Jakob Lerch's avatar Jakob Lerch
Browse files

feat(cli): rename main functions

parent a4ebf326
......@@ -13,7 +13,7 @@ if TYPE_CHECKING:
from gitlab.v4.objects.issues import Issue
def main(
def gitlab_to_mail(
gitlab_url: str = Option(..., envvar="GITLAB_URL"),
gitlab_token: str = Option(..., envvar="GITLAB_TOKEN"),
gitlab_project: int = Option(..., envvar="GITLAB_PROJECT"),
......@@ -59,4 +59,4 @@ def main(
if __name__ == "__main__":
run(main)
run(gitlab_to_mail)
......@@ -4,3 +4,6 @@
# topics_string = glp.get_issue_titles()
# write to pad
def gitlab_to_pad():
pass
......@@ -10,7 +10,7 @@ import topicmanager.hedgedoc as hedgedoc
from typer import Option, echo, run
def main(
def pad_to_gitlab_and_mail(
gitlab_url: str = Option(..., envvar="GITLAB_URL"),
gitlab_token: str = Option(..., envvar="GITLAB_TOKEN"),
gitlab_project: int = Option(..., envvar="GITLAB_PROJECT"),
......@@ -65,4 +65,4 @@ def main(
if __name__ == "__main__":
run(main)
run(pad_to_gitlab_and_mail)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment