Jason Penilla
18fc685c70
Don't remove from queue on failure in quoted string parser
2021-12-18 04:12:42 -08:00
Irmo van den Berge
484c97ca98
Fix concurrent cause of execution exception not being wrapped right
...
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-12-18 04:12:42 -08:00
Jason Penilla
708d11854e
Fix import order
2021-12-02 02:04:43 -08:00
alexander.soderberg
29abe82215
Chore: Improve the test setup for cloud-core and clean up some test cases.
2021-12-02 02:04:43 -08:00
Jason Penilla
9dc4e87fa8
Use typesafe dependency accessors
2021-12-02 02:04:43 -08:00
Jason Penilla
8ea7d59736
fix: deep nesting on permissions causing stack overflow errors
2021-12-02 02:04:43 -08:00
solo
8711d19703
Merge pull request #307 from solonovamax/fix/commands-completing-before-execution
...
Fix cloud swallowing exceptions in `suspend` methods.
2021-12-02 02:04:43 -08:00
Jason Penilla
83163c2a77
Replace more usages of TypeToken#toString
2021-12-02 02:04:43 -08:00
Jason Penilla
a92ff9d39a
Make CommandExecutionHandler#executeFuture return CompletableFuture<Void> instead of CompletableFuture<Object>
...
The value of the completed future is never used, void makes this more obvious
2021-12-02 02:04:43 -08:00
Jason Penilla
9e39b0ca8e
Don't catch NPE in AnnotatedElementAccessor
...
NPE is thrown when the annotation class param is null
2021-12-02 02:04:43 -08:00
Jason Penilla
1b52e8c3bd
Update errorprone
2021-12-02 02:04:43 -08:00
Jason Penilla
8aa81b445e
Rename CommandFlag#getCommandPermission
2021-12-02 02:04:43 -08:00
i0xHeX
b227032032
core: Fix single static argument not formatting properly ( #294 )
2021-12-02 02:04:43 -08:00
Jake Potrebic
9f0ff4e504
core: fix And/OrPermission losing conditional tree ( #296 )
2021-12-02 02:04:43 -08:00
Kezz
4037e8e393
core: Add @Liberal annotation to mark boolean arguments as liberal ( #288 )
2021-12-02 02:04:43 -08:00
Jason Penilla
be4cd4101f
core: Don't parse empty input strings in FlagArgument parser
2021-12-02 02:04:43 -08:00
Frank van der Heijden
9c85db386f
Fix raw input in command execution
2021-12-02 02:04:43 -08:00
Frank van der Heijden
3e28cc3191
Add @since and CHANGELOG.md entry for flag permissions
2021-12-02 02:04:43 -08:00
Frank van der Heijden
87a28b135b
Fix multi-alias flag not checking permissions
2021-12-02 02:04:43 -08:00
Frank van der Heijden
d0beddf9eb
No double space
2021-12-02 02:04:43 -08:00
Frank van der Heijden
1b7fb2f34c
Implement flag permissions
2021-12-02 02:04:43 -08:00
Alexander Söderberg
6871341291
I hate the fact that we started using Checkstyle.
...
Whose decision was that anyway..?
2021-12-02 02:04:43 -08:00
Alexander Söderberg
5934c2fd3b
Add changelog
2021-12-02 02:04:43 -08:00
Alexander Söderberg
7bb5e63dc7
Add support for suspending functions
...
This also changes CommandExecutionHandler to return futures instead. The old method is still supported, and the new future-returning method will delegate to the old non-returning method.
2021-12-02 02:04:43 -08:00
Jason Penilla
490bdfa3a4
Improve handling of non-quoted strings in quoted string parser
2021-07-05 02:56:06 -07:00
Jason Penilla
75e59c9fe6
Clean up StringParser
2021-07-05 02:56:06 -07:00
Jason Penilla
f7b7b93251
Various minor cleanup
2021-07-05 02:56:06 -07:00
Jason
e109e639a1
core: Improvements to number arguments ( #255 )
2021-07-05 02:56:06 -07:00
Jason
c9ac39ed26
Update build scripts for Gradle 7 ( #247 )
...
* fabric: Update Loom to 0.7-SNAPSHOT
* Update to Gradle 7
Switch to CadixDev/licenser
The plugin we were using before does not support Gradle 7, and hasn't been updated in over a year.
* Remove `jcenter()` references
* Move to new JDA repo and bump version
* Use setup-java v2 and Adopt JDK 16 in gh actions
* build: Temporarily add Incendo repo for plugin resolution
Allows building until licenser has a new release
* Import indra plugin classes instead of string applies
* remove space
Co-authored-by: broccolai <me@broccol.ai>
2021-07-05 02:56:06 -07:00
jmp
0d5c2b0b65
fabric: fix checkstyle issues
2021-07-05 02:56:06 -07:00
jmp
1409b91db0
fabric: add some pre-built predicate permissions for the client command manager
2021-07-05 02:56:06 -07:00
jmp
65bb4d7a5d
fabric: javadoc cleanup
2021-07-05 02:56:06 -07:00
jmp
488ea8f9d8
fabric: minor formatting/javadoc fixes
2021-07-05 02:56:06 -07:00
Zach Levis
5c7f2ffaab
license headers
2021-07-05 02:56:06 -07:00
Zach Levis
91b433c14b
fabric: Fully implement a registry entry argument type
2021-07-05 02:56:06 -07:00
Zach Levis
0af44e2406
fabric: Add builders for many of the basic argument types
2021-07-05 02:56:06 -07:00
Zach Levis
6b690811f1
core: Add a way to map the output of argument parsers
2021-07-05 02:56:06 -07:00
jmp
c78c4aba08
core: Throw an exception when both GREEDY and QUOTED are specified for a StringArgument
2021-07-05 02:56:06 -07:00
jmp
1bed15ea6d
core: Add @Quoted annotation to mark string arguments as quoted in annotated methods
2021-07-05 02:56:06 -07:00
p5nbTgip0r
f3e142d1f6
Register Long parser in StandardParserRegistry
2021-07-05 02:56:06 -07:00
p5nbTgip0r
69642bd5f4
Make long parser public and add documentation to constructor
2021-07-05 02:56:06 -07:00
broccolai
d5259dfbe4
Add explict this checkstyle rule and fix violations
2021-07-05 02:56:06 -07:00
broccolai
a6eb44376c
Fix tuple#toArray implementations
2021-07-05 02:56:06 -07:00
Alexander Söderberg
1600ef16c3
:clock: 2021 let's go!!!
2021-01-16 09:58:46 +01:00
Zach Levis
7d46e64ed3
✨ Add logical operators to permissions
...
These operators allow some basic combination of permissions to occur,
which expands what can be easily done with permissions definitions.
2021-01-16 08:54:07 +01:00
Alexander Söderberg
9550dce5e6
✨ Add access to parameter annotations in the parameter injector
2021-01-16 08:54:07 +01:00
Alexander Söderberg
14baf5b876
📚 Improve CommandSyntaxFormatter documentation
2021-01-16 08:54:07 +01:00
Alexander Söderberg
2cf743c805
✨ Add injection services ( #211 )
...
* ✨ Add injection services
* Change dependency scope for Guice
2021-01-16 08:54:07 +01:00
Alexander Söderberg
0b6a554946
✨ Implement predicate permissions ( #210 )
...
Co-authored-by: Josh Taylor <me@broccol.ai>
2021-01-16 08:54:07 +01:00
Zach Levis
78b081ccc2
core: Allow attaching a default description to arguments
2021-01-16 08:54:07 +01:00