aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/service/__main__.py
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-22 18:11:35 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-23 01:36:11 +0800
commit687ae968e10e1738c105fc0538fc29ccb08bfbbf (patch)
tree09217d1f06b435cbab5f665cf0bc0bd2b0e8b8e7 /tools/cru-py/cru/service/__main__.py
parent540bd737f6a805459becfaef4d89686a418efa04 (diff)
downloadcrupest-687ae968e10e1738c105fc0538fc29ccb08bfbbf.tar.gz
crupest-687ae968e10e1738c105fc0538fc29ccb08bfbbf.tar.bz2
crupest-687ae968e10e1738c105fc0538fc29ccb08bfbbf.zip
feat(services): refactor structure.
Diffstat (limited to 'tools/cru-py/cru/service/__main__.py')
-rw-r--r--tools/cru-py/cru/service/__main__.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/cru-py/cru/service/__main__.py b/tools/cru-py/cru/service/__main__.py
deleted file mode 100644
index 1c10e82..0000000
--- a/tools/cru-py/cru/service/__main__.py
+++ /dev/null
@@ -1,20 +0,0 @@
-from cru import CruException
-
-from ._app import create_app
-
-
-def main():
- app = create_app()
- app.run_command()
-
-
-if __name__ == "__main__":
- try:
- main()
- except CruException as e:
- user_message = e.get_user_message()
- if user_message is not None:
- print(f"Error: {user_message}")
- exit(1)
- else:
- raise