diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-22 18:11:35 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-23 01:36:11 +0800 |
commit | 34704b2090c48d9ab9e7458475fd701a38706ae7 (patch) | |
tree | 2aff2885ecfbef32095daf205bf2ebb32a7f2c34 /tools/cru-py/cru/service/__main__.py | |
parent | 594691a66ceb00536e133ece321846f7ba49f881 (diff) | |
download | crupest-34704b2090c48d9ab9e7458475fd701a38706ae7.tar.gz crupest-34704b2090c48d9ab9e7458475fd701a38706ae7.tar.bz2 crupest-34704b2090c48d9ab9e7458475fd701a38706ae7.zip |
feat(services): refactor structure.
Diffstat (limited to 'tools/cru-py/cru/service/__main__.py')
-rw-r--r-- | tools/cru-py/cru/service/__main__.py | 20 |
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 |