Commit graph

17 commits

Author SHA1 Message Date
dusk
0c012e98b5
refactor: separate commands into command_parser, command_definitions crates 2025-01-21 04:31:03 +09:00
dusk
2a66e8b4cf
refactor(commands): remove general From array impl for tokens because it doesnt make sense 2025-01-21 00:39:25 +09:00
dusk
07541d9926
refactor(commands): rewrite how parameters are handled so they work same across cmd params / flag params, and make it easier to add new parameters 2025-01-15 03:52:32 +09:00
dusk
a1f7656276
refactor(commands): FullString -> OpaqueRemainder and add OpaqueString 2025-01-15 00:35:22 +09:00
dusk
2a063442ea
refactor(commands): remove Reset as a parameter type 2025-01-15 00:21:11 +09:00
dusk
300539fdda
feat(commands): add typed flags, misplaced and non-applicable flags error reporting 2025-01-14 11:53:56 +09:00
dusk
413b8c1915
fix(commands): make flags not match if param was in quotes 2025-01-12 19:30:21 +09:00
dusk
58b5a26eca
fix(commands): add separate missing error for Token::Any to relay a better error message to user 2025-01-12 05:35:04 +09:00
dusk
d5c271be20
refactor(commands): clearer token match typing, make tree.possible_commads return iterator instead of traversing the whole tree immediately 2025-01-12 04:23:46 +09:00
dusk
4f7e9c22a1
feat(commands): implement Display traits for Token and Command to have some basic 'doc gen', split Toggle into Enable and Disable 2025-01-08 18:31:59 +09:00
dusk
482c923507
feat: better parameters handling, implement multi-token matching 2025-01-07 23:15:18 +09:00
dusk
eec9f64026
feat: implement proper ("static") parameters handling command parser -> bot
feat: handle few more commands bot side
fix(commands): handle missing parameters and return error
refactor(commands): use ordermap instead of relying on a sort function to sort tokens
2025-01-05 13:00:06 +09:00
dusk
1a781014bd
fix: send correct error message if a parsed command is not implemented, etc 2025-01-05 02:21:23 +09:00
dusk
ff121ecc51
refactor(commands): ToToken trait for easier conversion into tokens 2025-01-05 00:59:59 +09:00
dusk
af523a4c23
refactor(commands): separate commands definitions and other code into modules 2025-01-04 07:35:04 +09:00
dusk
405ac11d74
refactor(commands): use smolstr, use a decl macro to get rid of all the borrows while creating commands 2025-01-04 02:49:04 +09:00
dusk
63a35c78ac
chore: move command parser into crates 2025-01-03 20:19:50 +09:00
Renamed from lib/commands/src/token.rs (Browse further)