Commit graph

55 commits

Author SHA1 Message Date
dawn
12655fb539
add missing -yes flags to command definitions, use log crate instead of printlns in command parser, also accept double dash for flags 2026-01-26 02:22:54 +03:00
dawn
8431255930
return the def for the full commandd if we have it from parse_command 2026-01-20 00:55:27 +03:00
dawn
516eaa5292
add x alias for edit -regex 2026-01-20 00:51:30 +03:00
dawn
d804303615
format rust code 2026-01-19 18:46:40 +03:00
dawn
beec38ef8b
improve command suggestions by matching previous failed branch if parameter, and substitute parameters for better jaro winkler 2026-01-19 18:44:50 +03:00
dawn
c18e72450b
use Arc throught the parser 2026-01-19 17:57:50 +03:00
dawn
f9367ea041
fix infinite loop backtracking for valid branches, cleanup matched tokens type 2026-01-19 17:49:06 +03:00
dawn
9122e64a41
fix command suggestions breaking if specifying a parameter 2026-01-19 00:35:01 +03:00
dawn
dc9b7b3e6b
use original command when ranking for possible commands if the command was from an optional branch 2026-01-18 23:34:58 +03:00
dawn
5daa4777f5
fix pk;e taking in id, only take message ref 2026-01-18 22:09:58 +03:00
dawn
c5ce6fb6c0
fix issue with optional branches having wrong flag insert positions 2026-01-17 15:40:07 +03:00
dawn
d1451a858d
cleanup unneeded .into_iters() and stuff 2026-01-17 10:25:22 +03:00
dawn
553b566595
improve parameter enum macros 2026-01-17 09:42:48 +03:00
dusk
32d481c6b9
make use of the new optional parsing and remove the _self commands 2025-11-27 02:00:13 +00:00
dusk
00d3840fd1
fix parsing of optional parameters 2025-11-27 01:28:10 +00:00
dusk
3c59ad62bd
partial broken fix for optional parameters (mostly message and reproxy commands) 2025-11-27 00:40:53 +00:00
dusk
c68a77bb32
add clear-embed and clear-attachment aliases for respective flags to edit cmd 2025-11-23 20:07:14 +00:00
dusk
b9fb453c73
fix user ref regex, system ref parsing and add s <id> 2025-11-23 19:27:18 +00:00
dusk
960f735db9
system refs now first parse for a user ref 2025-11-23 14:51:53 +00:00
dusk
6bc39d23fb
detect invalid flags before misplaced flags 2025-11-23 14:11:21 +00:00
dusk
d8748b1efc
remove OpaqueStringRemainder and use Remainder like intended 2025-11-23 10:28:46 +00:00
dusk
f29e48ea74
fix quotes value being cut off 2025-10-15 20:39:50 +00:00
dusk
376f688ff4
improve error messages for the enum parameters 2025-10-15 20:18:53 +00:00
dusk
2fe747d704
fix some parameters that should parse remainder but werent 2025-10-15 19:10:44 +00:00
dusk
a307dd37c4
fix message edit commands, parse DM message links for ids 2025-10-13 10:25:55 +00:00
dusk
134855f8f8
fix reproxy command not accepting member ref 2025-10-13 08:16:53 +00:00
dusk
bbed401314
fix panic when operating inside graphemes while trying to find quotes 2025-10-11 03:54:43 +00:00
dusk
15ffd16c01
implement command root 2025-10-07 21:59:26 +00:00
dusk
c1ed7487d7
rank possible commands by input similarity 2025-10-07 18:22:04 +00:00
dusk
0f26a69f1b
implement the rest of the config commands 2025-10-04 19:32:58 +00:00
dusk
a268f75d32
implement admin commands 2025-10-04 01:57:48 +00:00
dusk
5198f7d83b
better parameters handling, implement import export 2025-10-03 15:50:54 +00:00
dusk
e4f38c76a9
implement proxied message and permcheck commands 2025-10-03 02:21:12 +00:00
dusk
1943687c70
implement rest of group and member commands 2025-10-01 00:51:45 +00:00
dusk
95fc7e9f60
implement parse list options and related commands 2025-09-30 18:45:35 +00:00
dusk
6d6dcc389f
add hidden flags that dont show up in suggestions, mainly for global flags 2025-09-27 00:21:34 +00:00
dusk
c92c3f84f0
implement random commands, dont keep the subcommands only the flags 2025-09-26 23:56:49 +00:00
dusk
104083aac1
feat: implement system front commands 2025-09-26 14:58:59 +00:00
dusk
10dd499835
feat: implement switch commands 2025-09-24 21:32:42 +03:00
dusk
4a865b45cd
build: define rust-toolchain.toml and point to 'latest' nightly, fix rust crates on it 2025-08-13 02:42:53 +03:00
dusk
3eece261fd
feat: implement system privacy commands (yay system edit done) 2025-04-04 06:14:17 +09:00
dusk
cb0a9eaf9f
feat: implement system proxy commands 2025-04-04 05:24:09 +09:00
dusk
b62340cbb3
feat: implement system avatar commands 2025-04-04 03:50:07 +09:00
dusk
ac52b5c257
feat: implement system name etc. commands 2025-03-31 22:22:38 +09:00
dusk
87f6fe9d75
refactor(command_parser): improve the invalid flags error 2025-03-29 14:51:58 +09:00
dusk
3e65d74bc4
fix(command_parser): use correct invalid_flags variable when constructing that error 2025-03-29 14:34:15 +09:00
dusk
a5576ad225
fix(command_parser): don't return a command early if there is still input left 2025-03-29 14:09:40 +09:00
dusk
e3778b9bb8
refactor(command_parser): move parameter fmt to Parameter types Display impl 2025-01-24 05:16:15 +09:00
dusk
58d493ac0a
refactor(command_parser): combine TokenMatchError and TokenMatchedValue into a single result type 2025-01-24 04:40:07 +09:00
dusk
92276a720e
refactor(command_parser): remove the Empty token, we don't need it 2025-01-24 04:13:06 +09:00