Nathan Adams
|
8e9859e471
|
Added javadoc to CommandDispatcher
|
2018-09-26 10:42:35 +02:00 |
|
Nathan Adams
|
1fe283c136
|
Added readme
|
2018-09-26 10:42:35 +02:00 |
|
Nathan Adams
|
189c7d0433
|
Add MIT license
|
2018-09-26 10:42:35 +02:00 |
|
Nathan Adams
|
872658c737
|
Add copyright to all code
|
2018-09-26 10:42:35 +02:00 |
|
 Nathan AdamsandErik Broes
|
4dca222938
|
Don't publish .md5 files
|
2018-07-24 14:49:11 +02:00 |
|
 Nathan AdamsandFry
|
235f0c9b28
|
Use env.AWS_ROLE_ARN for publishing
|
2018-07-02 12:55:47 +02:00 |
|
 Nathan AdamsandSeargeDP
|
1ecf0558a0
|
Upload to S3 if -PbuildNumber is set, otherwise version is foo.0-SNAPSHOT published to local maven repo
|
2018-06-29 13:03:44 +02:00 |
|
Nathan Adams
|
631096e871
|
Changed exceptions to Messages, to allow translations via library holders (ie minecraft game)
|
2018-05-30 12:45:07 +02:00 |
|
Nathan Adams
|
9fd10a2f3b
|
Added missing gradle wrapper
|
2018-05-02 11:45:38 +02:00 |
|
Nathan Adams
|
956b25d391
|
Fix automatic unit tests
|
2018-05-02 11:24:29 +02:00 |
|
Nathan Adams
|
0b2414808e
|
Version 0.1.24
|
2018-02-07 13:45:50 +01:00 |
|
Nathan Adams
|
ed3ecfbae3
|
Add tooltips to command suggestions
|
2018-02-06 11:30:39 +01:00 |
|
Nathan Adams
|
ecfa4b31dd
|
Suggestions:getList() now returns <Suggestion> not <String>
|
2018-02-05 16:28:48 +01:00 |
|
Nathan Adams
|
2def16ba85
|
Sort suggestions case-insensitively
|
2018-02-05 15:57:01 +01:00 |
|
Nathan Adams
|
182168acd5
|
Don't automatically remove common prefixes from suggestions
|
2018-02-05 15:51:48 +01:00 |
|
Nathan Adams
|
482e8601da
|
Fixed crash in tab-completion
|
2018-01-31 11:17:59 +01:00 |
|
Nathan Adams
|
0827fe17d4
|
Don't system.out spam
|
2018-01-31 09:31:38 +01:00 |
|
Nathan Adams
|
69c2a248de
|
Added functionality for finding ambiguities on-the-fly
|
2018-01-30 16:16:36 +01:00 |
|
Nathan Adams
|
3498398452
|
Fixed literals with special characters
|
2018-01-17 15:58:22 +01:00 |
|
Nathan Adams
|
928912de68
|
Catch redirect errors when forked
|
2018-01-17 12:46:19 +01:00 |
|
Nathan Adams
|
9fbf7bfe42
|
Distinguish forked redirect vs regular redirect
|
2018-01-17 12:13:29 +01:00 |
|
Nathan Adams
|
72817f8dd7
|
Improved parsing a bit
|
2018-01-17 11:22:54 +01:00 |
|
Nathan Adams
|
8d4d3cba80
|
Optimized parsing
|
2018-01-16 17:10:54 +01:00 |
|
Nathan Adams
|
8ed8f02bee
|
Benchmark parsing
|
2018-01-16 17:10:42 +01:00 |
|
Nathan Adams
|
6a5289fa33
|
Fixed a bug in redirected contexts, version to 0.1.17
|
2018-01-16 15:14:30 +01:00 |
|
Nathan Adams
|
a40cb8869f
|
Optimized execute method, version 0.1.16
|
2018-01-16 14:22:47 +01:00 |
|
Nathan Adams
|
f329f927e7
|
Improved the speed of redirected commands
|
2018-01-16 13:36:25 +01:00 |
|
Nathan Adams
|
5a8a8a29d2
|
Added benchmarks for simple & redirect command execution
|
2018-01-16 13:36:00 +01:00 |
|
Nathan Adams
|
6f04756d34
|
Don't stop when a forked command failed
|
2017-12-12 09:56:02 +01:00 |
|
Nathan Adams
|
4b64169b59
|
Catch any runtime exceptions from parsing
|
2017-12-11 16:04:22 +01:00 |
|
Nathan Adams
|
0a4d2363a2
|
Static helper methods for StringRange to make them more readable
|
2017-11-21 13:27:58 +01:00 |
|
Nathan Adams
|
ab95e809e2
|
Suggestions should ultimately just contain a list of strings at a range, not each with an individual range
|
2017-11-21 10:51:56 +01:00 |
|
Nathan Adams
|
095498c94e
|
New suggestion API
|
2017-11-20 13:45:05 +01:00 |
|
Nathan Adams
|
557352f289
|
Added double argument type
|
2017-11-16 14:31:50 +01:00 |
|
Nathan Adams
|
647f859b63
|
Added readFloat to StringReader
|
2017-11-16 14:28:46 +01:00 |
|
Nathan Adams
|
1b32233044
|
Don't add spaces to literal suggestions
|
2017-11-16 14:28:11 +01:00 |
|
Nathan Adams
|
1f201022dd
|
Fixed issues with suggesting redirects
|
2017-11-15 16:13:52 +01:00 |
|
Nathan Adams
|
87f65f2bd2
|
Updated StringArgumentType.escapeIfRequired to new string rules
|
2017-11-14 15:20:06 +01:00 |
|
Nathan Adams
|
8bf57b4a9a
|
Add the full input string to command context
|
2017-11-14 12:04:17 +01:00 |
|
Nathan Adams
|
45966d1d1e
|
Changed custom suggestions to be nullable
|
2017-11-13 14:38:38 +01:00 |
|
Nathan Adams
|
1ce9894c07
|
Added methods for getting path by node & nodes by path
|
2017-11-13 12:42:31 +01:00 |
|
Nathan Adams
|
6b57d5f260
|
Expose information about the built-in arguments (bounds or type)
|
2017-11-13 11:15:04 +01:00 |
|
Nathan Adams
|
fdff548a64
|
Forked commands should execute FIFO
|
2017-11-10 10:45:49 +01:00 |
|
Nathan Adams
|
1369eaf2c3
|
Allow mixed case literal suggestions
|
2017-11-09 12:25:29 +01:00 |
|
Nathan Adams
|
b716f9a873
|
Executing forked commands should return the number of successes, and not fail on any errors
|
2017-11-09 12:11:08 +01:00 |
|
Nathan Adams
|
e97dd6bb79
|
Allow consuming of command results
|
2017-11-08 16:05:38 +01:00 |
|
Nathan Adams
|
be0090873b
|
Allow overriding of suggestion providers per argument
|
2017-11-08 15:17:59 +01:00 |
|
Nathan Adams
|
4f7c6d4e32
|
Made suggestions async
|
2017-11-08 14:50:25 +01:00 |
|
Nathan Adams
|
b48dbe7916
|
Reimplemented command suggestions
|
2017-11-08 13:01:08 +01:00 |
|
Nathan Adams
|
4d91bc6e7e
|
Treat any trailing space as "a yet to be finished command" instead of a maybe valid argument
|
2017-11-08 09:35:27 +01:00 |
|
Nathan Adams
|
6e61fef225
|
Fixed commands with a trailing whitespace
|
2017-11-08 09:20:48 +01:00 |
|
Nathan Adams
|
2c39925cda
|
Version 0.1.1
|
2017-11-07 15:54:33 +01:00 |
|
Nathan Adams
|
8ae247bb6a
|
Don't store string arguments in contexts, ranges are more useful
|
2017-11-07 15:53:12 +01:00 |
|
Nathan Adams
|
e342380600
|
Removed concept of argument suffix
|
2017-11-06 16:17:21 +01:00 |
|
Nathan Adams
|
c746232ffc
|
Removed : int (for example) in syntax.
We can have better ways to show this, without making usage text so long.
|
2017-11-06 16:14:29 +01:00 |
|
Nathan Adams
|
59a27953be
|
If a redirect returned nothing, return nothing.
|
2017-11-06 15:02:37 +01:00 |
|
Nathan Adams
|
43e18f6a04
|
Allow redirect modifiers to throw exceptions
|
2017-11-06 14:45:54 +01:00 |
|
Nathan Adams
|
9d65991ae8
|
Fixed competing overloads not allowing other ones to try to parse
|
2017-10-31 17:03:52 +01:00 |
|
Nathan Adams
|
e85f4a9f11
|
Added optional boolean to get all command usage text
|
2017-10-13 09:34:45 +02:00 |
|
Nathan Adams
|
08b183588f
|
Renamed CommandException -> CommandSyntaxException
|
2017-08-21 14:44:22 +02:00 |
|
Nathan Adams
|
f287b89ee4
|
Readded exceptions without context, useful for exceptions during execution
|
2017-08-15 14:36:27 +02:00 |
|
Nathan Adams
|
02f3a68ac0
|
Commands can throw exceptions
|
2017-08-15 09:35:09 +02:00 |
|
Nathan Adams
|
9d8ccfb1e2
|
Fixed redirect modifiers not always being ran
|
2017-08-10 15:30:14 +02:00 |
|
Nathan Adams
|
b0f69ebc47
|
Allow redirects to modify context, supporting forks in the command chain
|
2017-08-10 14:32:01 +02:00 |
|
Nathan Adams
|
c282b26b60
|
Removed unneeded field from contextbuilder
|
2017-08-10 13:22:58 +02:00 |
|
Nathan Adams
|
9c5af32afa
|
When we redirect, add initial node to the context
|
2017-08-10 09:03:10 +02:00 |
|
Nathan Adams
|
78f4187908
|
Fixed from failing prematurely on partially matching literals
|
2017-08-07 09:24:14 +02:00 |
|
Nathan Adams
|
2d7644dce3
|
Change usage text of redirects based on if it's root or not
|
2017-08-03 12:41:19 +02:00 |
|
Nathan Adams
|
a67b4b51b0
|
Added float argument
|
2017-08-01 09:38:14 +02:00 |
|
Nathan Adams
|
4b9170fd7f
|
Added a redirect option on nodes
|
2017-07-31 14:39:59 +02:00 |
|
Nathan Adams
|
7f490f0a8b
|
A context's arguments should be sorted
|
2017-07-27 14:06:58 +02:00 |
|
Nathan Adams
|
42631c29b7
|
Store start & end on parsed arguments
|
2017-07-27 11:07:09 +02:00 |
|
Nathan Adams
|
152c0b09d1
|
Removed unused copy methods, no longer needed
|
2017-07-27 11:00:35 +02:00 |
|
Nathan Adams
|
5181559f46
|
Made all exceptions throw with context
|
2017-07-27 09:58:14 +02:00 |
|
Nathan Adams
|
9276feddd4
|
Ported new methods to StringReader from nbt parsing
|
2017-07-26 14:01:43 +02:00 |
|
Nathan Adams
|
dcda383dc9
|
Allow disabling of command exception stack trace
|
2017-07-26 14:01:29 +02:00 |
|
Nathan Adams
|
d0be598676
|
Code cleanup
|
2017-07-25 16:07:03 +02:00 |
|
Nathan Adams
|
3bb1a888fb
|
Made node parsing also use readers
|
2017-07-25 16:00:38 +02:00 |
|
Nathan Adams
|
d2a5eeedc5
|
Fixed up tests to use the new reader in type parsing
|
2017-07-25 15:31:14 +02:00 |
|
Nathan Adams
|
9e481e3f24
|
Started moving towards passing around one big reader, instead of lots of strings
|
2017-07-25 15:07:58 +02:00 |
|
Nathan Adams
|
a7674e984d
|
Source is no longer required to get an argument result
|
2017-07-25 13:19:36 +02:00 |
|
Nathan Adams
|
ce5eb700b8
|
Removed DynamicParsedArgument, undoing previous work to split it up.
Realized that returning a fixed partial is the same thing, but doesn't complicate the code so much.
|
2017-07-25 13:18:22 +02:00 |
|
Nathan Adams
|
8e53d8ff4f
|
Added usage text to string
|
2017-07-20 13:59:54 +02:00 |
|
Nathan Adams
|
74f7c0e6b0
|
Added bool argument
|
2017-07-20 13:57:48 +02:00 |
|
Nathan Adams
|
eaf4c6175d
|
Keep nodes sorted alphabetically for niceness
|
2017-07-20 13:32:12 +02:00 |
|
Nathan Adams
|
daea2d76d7
|
Fixed suffix with empty input
|
2017-07-20 13:08:12 +02:00 |
|
Nathan Adams
|
e82d657d26
|
Added suffix to integer, and pass context around some more
|
2017-07-20 13:01:22 +02:00 |
|
Nathan Adams
|
13a7d53bdc
|
Renamed CommandArgumentType -> ArgumentType
|
2017-07-10 12:04:52 +02:00 |
|
Nathan Adams
|
c1a159f75a
|
Pass in source to evaluations of arguments
|
2017-07-04 15:12:31 +02:00 |
|
Nathan Adams
|
4af7274892
|
Fixed how optional commands work - we don't find an earlier command in the tree anymore.
|
2017-06-30 09:17:07 +02:00 |
|
Nathan Adams
|
9a3f987c97
|
Overhauled usage generation
|
2017-06-29 15:15:12 +02:00 |
|
Nathan Adams
|
4337a9645e
|
Added new StringArgumentType
|
2017-06-29 10:31:14 +02:00 |
|
Nathan Adams
|
60c5770f5e
|
Exposed parse results a little easier. Make no distinction between "no permission" and "no command".
|
2017-06-28 16:34:52 +02:00 |
|
Nathan Adams
|
523e9d0236
|
Allow turning nodes back into builders without children
|
2017-06-28 15:09:19 +02:00 |
|
Nathan Adams
|
716e8f3f16
|
Two nodes at the same position that can both parse is no longer supported. Separated ERROR_UNKNOWN_COMMAND into ERROR_UNKNOWN_ARGUMENT
|
2017-06-28 13:16:02 +02:00 |
|
Nathan Adams
|
fbf3546f18
|
Fixed crash executing ""
|
2017-06-28 12:22:35 +02:00 |
|
Nathan Adams
|
e9a930c3b5
|
Added/optimized getInput methods to both builder and context
|
2017-06-28 11:15:30 +02:00 |
|
Nathan Adams
|
7d4dcc3e4b
|
Allow changing of a source after creation of a contextbuilder
|
2017-06-28 11:08:26 +02:00 |
|
Nathan Adams
|
e6b78a5f2a
|
Allow access to an unbuilt context, for caching parsed functions
|
2017-06-28 11:07:42 +02:00 |
|
Nathan Adams
|
bafe8e6b56
|
Made getArgument return the actual value, not a container object
|
2017-06-28 10:55:56 +02:00 |
|