Trevor Bergeron
bfdd52502a
Fix must_consume_args
2022-07-21 22:46:48 -04:00
Tulir Asokan
068e268c63
Blacken and isort code
2022-03-25 19:52:14 +02:00
Tulir Asokan
adf28312df
Replace _ with - in default command names
2021-09-10 22:18:30 +03:00
Tulir Asokan
92a14f20f6
Fix getting name of function for command handlers
2021-06-08 11:44:34 +03:00
Tulir Asokan
13aaedfad9
Fix some type hints
2021-04-11 12:44:48 +03:00
Tulir Asokan
cfa831c463
Improve usage when base command has no arguments
2020-10-25 19:30:37 +02:00
Tulir Asokan
ba4fc26ea7
Maybe improve help stuff
2020-10-25 19:21:17 +02:00
Tulir Asokan
e3aba7f26d
Require command arguments to be fully consumed
2020-10-25 18:58:28 +02:00
Tulir Asokan
4e767a10e4
Check for none instead of falsy in arg matching
2020-07-11 16:23:00 +03:00
Tulir Asokan
aac1f267d7
Fix exception when running subcommand without enough arguments
2020-03-25 21:26:17 +02:00
Tulir Asokan
293b44729c
Try to make commands case insensitive. Should fix #83
2020-02-25 22:33:19 +02:00
Tulir Asokan
bb45218639
Fix splitting arguments when command has newlines
2019-11-17 22:31:02 +02:00
Lorenz Steinert
2d1560e92a
fix start and end positions of match
...
the `match.pos` and `match.endpos` are not the start and end of the matched
group but the start and end arguments passed to the `re.match()` method.
use `match.start()` and `match.end()` to find the beginning and the end of
the matched group.
see https://docs.python.org/3/library/re.html#match-objects
2019-10-16 16:08:01 +02:00
Tulir Asokan
7b4d3e8313
Fix bug with default __mb_is_command_match__ impl when using lambda command names
2019-06-20 16:55:55 +03:00
Tulir Asokan
8b5eb1849b
Pass correct self to command aliases func
2019-06-12 20:58:22 +03:00
Tulir Asokan
4210f3195f
Update copyright year
2019-06-08 17:42:07 +03:00
Tulir Asokan
e565b99826
Pass extra info to argument parsers and add dateparser to temporary dockerfile dependencies
2019-06-08 12:31:38 +03:00
Tulir Asokan
9bd06a3d64
Add web handler decorators
2019-05-14 18:32:48 +03:00
Tulir Asokan
2bf1c41b53
Fix __mb_is_command_match__
2019-02-17 15:57:55 +02:00
Tulir Asokan
f548e17c80
Fix regex flag args
2019-02-05 12:27:19 +02:00
Tulir Asokan
a57df919f5
Fix passive command matching and add regex flag args
2019-02-05 12:08:21 +02:00
Tulir Asokan
8b5c637f76
Fix CommandHandler descriptor
2019-01-18 22:58:43 +02:00
Tulir Asokan
4ea980cb93
Fix typo
2019-01-18 21:31:39 +02:00
Tulir Asokan
b926f1e59d
Fix active command handlers for multi-instance plugins
2019-01-18 21:26:04 +02:00
Tulir Asokan
9d38c43576
Fix mistake in __mb_subcommands_list__
2019-01-15 15:47:30 +02:00
Tulir Asokan
c4c7bdc76b
Add event type filter to command handling system
2019-01-08 21:17:41 +02:00
Tulir Asokan
88c2f9d463
Add support for command aliases and dynamic command names
2018-12-26 18:38:56 +02:00
Tulir Asokan
0cf06f9f6b
Make new command handling system fully work
2018-12-25 00:37:02 +02:00
Tulir Asokan
5ff5eae3c6
Make new command handling actually somewhat work
2018-12-24 00:31:01 +02:00
Tulir Asokan
682eab348d
Some sort of command handling system
2018-12-18 00:53:39 +02:00
Tulir Asokan
f104595217
Changes related to rewriting the command handling system
2018-12-16 00:52:54 +02:00