Intake
Intake copied to clipboard
IoC-oriented Java command parsing library
Currently if using the `@Optional` annotation to specify an optional argument, within a class file also using the JDK `Optional` class, or the Guava `Optional` class you're forced to use...
This PR simplifies TextProvider to be a lot clearer and also avoid swallowing an unnecessary exception. Furthermore, it changes its behaviour so that created text does not always have a...
Currently, if you try to setup Parametric commands, it fails due to the DefaultModule expecting CommandArgs to be in the namespace when `parser.parseArguments` is called. This moves it to where...
Intake should provide some sort of support for localizations. This affects two fields: 1. **Internal localization:** All hard-coded strings should be externalized in a Java ResourceBundle and some behaviour might...
When I checked my Authorizer (I'm using ParametricBuilder), I found out it executes 2 times. Firstly for the first command in class (with annotated methods) then for my current command....
### What's the point of Guava's Optional class? Probably the single biggest disadvantage of null is that it's not obvious what it should mean in any given context: it doesn't...
Close the issue #10 BTW I can't find where the getSuggestions method called.
It would be very useful to have the parameter CommandArgs to method getSuggestions in Provider class. Example: ``` java /** * Get a list of suggestions for the given parameter...
This fork is tested and verified to be working, it does not break previous versions of Intake. Example Usage: ``` java ParametricBuilder builder = new ParametricBuilder(); builder.addCompleter(new ExampleCommand()); ``` ```...