ErisPulse 2.1.10__py3-none-any.whl → 2.1.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ErisPulse/__main__.py +20 -3
- {erispulse-2.1.10.dist-info → erispulse-2.1.11.dist-info}/METADATA +1 -1
- {erispulse-2.1.10.dist-info → erispulse-2.1.11.dist-info}/RECORD +6 -6
- {erispulse-2.1.10.dist-info → erispulse-2.1.11.dist-info}/WHEEL +0 -0
- {erispulse-2.1.10.dist-info → erispulse-2.1.11.dist-info}/entry_points.txt +0 -0
- {erispulse-2.1.10.dist-info → erispulse-2.1.11.dist-info}/licenses/LICENSE +0 -0
ErisPulse/__main__.py
CHANGED
|
@@ -486,8 +486,8 @@ def main():
|
|
|
486
486
|
upgrade_parser.add_argument('--force', '-f', action='store_true', help='跳过确认直接升级')
|
|
487
487
|
|
|
488
488
|
# 运行命令
|
|
489
|
-
run_parser = subparsers.add_parser('run', help='运行指定主程序')
|
|
490
|
-
run_parser.add_argument('script', type=str, help='要运行的主程序路径')
|
|
489
|
+
run_parser = subparsers.add_parser('run', help='运行指定主程序(默认为main.py)')
|
|
490
|
+
run_parser.add_argument('script', type=str, nargs='?', help='要运行的主程序路径(可选,默认为main.py)')
|
|
491
491
|
run_parser.add_argument('--reload', action='store_true', help='启用热重载模式')
|
|
492
492
|
|
|
493
493
|
args = parser.parse_args()
|
|
@@ -603,6 +603,16 @@ def main():
|
|
|
603
603
|
PyPIManager.upgrade_all()
|
|
604
604
|
|
|
605
605
|
elif args.command == "run":
|
|
606
|
+
if not hasattr(args, 'script') or not args.script:
|
|
607
|
+
if not os.path.exists("config.toml") or not os.path.isfile("main.py"):
|
|
608
|
+
from ErisPulse import sdk
|
|
609
|
+
sdk.init()
|
|
610
|
+
args.script = "main.py"
|
|
611
|
+
console.print(Panel(
|
|
612
|
+
"未指定主程序,运行入口点为 [bold]main.py[/]",
|
|
613
|
+
title="提示",
|
|
614
|
+
style="info"
|
|
615
|
+
))
|
|
606
616
|
start_reloader(args.script, args.reload)
|
|
607
617
|
elif args.command == "list-remote":
|
|
608
618
|
import asyncio
|
|
@@ -646,7 +656,14 @@ def main():
|
|
|
646
656
|
title="错误",
|
|
647
657
|
style="error"
|
|
648
658
|
))
|
|
649
|
-
|
|
659
|
+
elif args.command == "init":
|
|
660
|
+
from ErisPulse import sdk
|
|
661
|
+
sdk.init()
|
|
662
|
+
console.print(Panel(
|
|
663
|
+
"初始化完成",
|
|
664
|
+
title="成功",
|
|
665
|
+
style="success"
|
|
666
|
+
))
|
|
650
667
|
except KeyboardInterrupt as e:
|
|
651
668
|
pass
|
|
652
669
|
except Exception as e:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
ErisPulse/__init__.py,sha256=T-N56UQyBmpvlqwH2wGi5ptPzaJpbgF5tKkJt0DlkaM,26099
|
|
2
|
-
ErisPulse/__main__.py,sha256=
|
|
2
|
+
ErisPulse/__main__.py,sha256=a_XkG4Zs2MzH5laNFxPigDlArWGJ5AkMglwChIgIW94,25617
|
|
3
3
|
ErisPulse/Core/__init__.py,sha256=tBYPahQ7-w7U6M69xy8DW0_ECa9ja-Q0y_SQqVswYBo,409
|
|
4
4
|
ErisPulse/Core/adapter.py,sha256=ZK81dibJ471FowL0MRXkS113iBcMgj_VzpTw0PzhAEo,18102
|
|
5
5
|
ErisPulse/Core/config.py,sha256=ZmwGdtHSOE7K5uOGzLYcyl3ZF3sAmeWAntqcdfDzhpM,5027
|
|
@@ -9,8 +9,8 @@ ErisPulse/Core/mods.py,sha256=2yIq8t9Ca9CBPRiZU0yr8Lc0XGmmkB7LlH-5FWqXjw4,7023
|
|
|
9
9
|
ErisPulse/Core/raiserr.py,sha256=vlyaaiOIYkyqm9dAqSW9E54JBzX-9roHDp5_r6I0yUU,5591
|
|
10
10
|
ErisPulse/Core/server.py,sha256=FkDTeLuHD5IBnWVxvYU8pHb6yCt8GzyvC1bpOiJ7G7I,9217
|
|
11
11
|
ErisPulse/Core/util.py,sha256=7rdMmn6sBFqYd4znxBCcJjuv2eyTExdeKyZopgds868,3796
|
|
12
|
-
erispulse-2.1.
|
|
13
|
-
erispulse-2.1.
|
|
14
|
-
erispulse-2.1.
|
|
15
|
-
erispulse-2.1.
|
|
16
|
-
erispulse-2.1.
|
|
12
|
+
erispulse-2.1.11.dist-info/METADATA,sha256=sWtikjfI0bG6Khd8gUHl-2bX_xYTZOmDZffq9cA6PW8,6259
|
|
13
|
+
erispulse-2.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
+
erispulse-2.1.11.dist-info/entry_points.txt,sha256=Jss71M6nEha0TA-DyVZugPYdcL14s9QpiOeIlgWxzOc,182
|
|
15
|
+
erispulse-2.1.11.dist-info/licenses/LICENSE,sha256=4jyqikiB0G0n06CEEMMTzTXjE4IShghSlB74skMSPQs,1464
|
|
16
|
+
erispulse-2.1.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|