Make Commandler's StandardDispatcher more Configurable #52

Open
opened 2019-08-17 01:48:39 +01:00 by Ghost · 0 comments
Ghost commented 2019-08-17 01:48:39 +01:00 (Migrated from codeberg.org)

The StandardDispatcher needs to be more flexible so users can actually make what they want, preferably without having to create their own Dispatcher as the only way to get their intended functionality as that can be some work and isn't friendly for new users.

Make Dispatchers configurable and give the StandardDispather two configurable properties to start:

  • Greedy: True if the last parameter should always be greedy.
  • Ignore Extra Params: If more parameters are given than required, just ignore them without throwing an error.
  • Delimiter: Choose a custom delimiter to go between the module (Controller) and command (Control), for Example if a user wants:
    >twitch/get sethipandi
    instead of
    >twitch get sethipandi
The StandardDispatcher needs to be more flexible so users can actually make what they want, preferably without having to create their own Dispatcher as the only way to get their intended functionality as that can be some work and isn't friendly for new users. Make Dispatchers configurable and give the StandardDispather two configurable properties to start: * Greedy: True if the last parameter should always be greedy. * Ignore Extra Params: If more parameters are given than required, just ignore them without throwing an error. * Delimiter: Choose a custom delimiter to go between the module (Controller) and command (Control), for Example if a user wants: `>twitch/get sethipandi` instead of `>twitch get sethipandi`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SethFalco/commandler#52
No description provided.