Commit Graph

22 Commits

Author SHA1 Message Date
Richard Chien
c366e6c950 fix docstring of command handler function 2020-03-14 22:45:17 +08:00
Richard Chien
0b7980a4a4 reformat 2020-02-24 14:12:51 +08:00
Mix
22462c8ed6
Update __init__.py
把格式改回来
2020-02-22 18:09:21 +08:00
Mix
bdb64569e7
Update __init__.py
修复CommandSession.pause和CommandSession.finish在多线程环境下可能运行出错的bug
2020-02-22 10:03:50 +08:00
Richard Chien
d363cea58f Warn if failed to register command 2020-02-14 17:03:54 +08:00
Richard Chien
f7e4223dc6 Support str type for aliases 2020-02-14 16:44:22 +08:00
Richard Chien
5986afb200 Add max validation failures check of command arguments 2019-02-21 22:23:43 +08:00
Richard Chien
635fc70756 Fix bug of handle_cancellation() 2019-02-21 22:20:31 +08:00
Richard Chien
ab4d12d214 Add argfilter type "controllers" 2019-02-21 21:57:05 +08:00
Richard Chien
0ecaa57230 Fix detail behavior 2019-01-25 22:30:35 +08:00
Richard Chien
189cf23720 Adjust 2019-01-25 21:55:07 +08:00
Richard Chien
bd1c272eec Adjust type hints 2019-01-25 19:11:18 +08:00
Richard Chien
78d48fb163 Rearrange some code 2019-01-25 18:51:42 +08:00
Richard Chien
ca49aa7c98 Add default behavior while there is no args_parser_func 2019-01-25 16:37:50 +08:00
Richard Chien
128cb8ce29 Adjust 2019-01-25 16:25:00 +08:00
Richard Chien
347318aaaa Use stub file to keep class CommandGroup clean 2019-01-25 15:29:30 +08:00
Richard Chien
ae35c2e08a Keep send_kwargs through get() and argument filter 2019-01-25 14:03:57 +08:00
Richard Chien
1fd740d223 Make current_arg_text and current_arg_images readonly properties 2019-01-25 13:48:28 +08:00
Richard Chien
73838ac46a Add comment 2019-01-25 13:29:15 +08:00
Richard Chien
368b6290b3 Add default validation failure expression config 2019-01-25 12:59:06 +08:00
Richard Chien
0079cd1876 Use functions to implement validators 2019-01-25 12:57:28 +08:00
Richard Chien
f8ecc7bba1 Implement argument filters 2019-01-25 00:14:30 +08:00