Commit graph

14 commits

Author SHA1 Message Date
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
c6db96115e
refactor(commands): remove help text from command macro and use method to set it 2025-01-20 22:50:45 +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
300539fdda
feat(commands): add typed flags, misplaced and non-applicable flags error reporting 2025-01-14 11:53:56 +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
58f07c3baa
feat(commands): allow commands to not be suggested 2025-01-11 23:05:29 +09:00
dusk
f0d287b873
feat(commands): show command suggestions if a command was not found 2025-01-11 22:38:29 +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
ff121ecc51
refactor(commands): ToToken trait for easier conversion into tokens 2025-01-05 00:59:59 +09:00
dusk
e70d69e45c
refactor: start to stop using ctx.Match 2025-01-05 00:58:48 +09:00
dusk
b9867e7ea3
refactor(commands): also use smolstr for commands themselves 2025-01-04 07:43:55 +09:00
dusk
af523a4c23
refactor(commands): separate commands definitions and other code into modules 2025-01-04 07:35:04 +09:00