-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
I was wondering if it's possible to register aliases to certain commands using the commodore file format. Right now I have something like this:
InputStream is = //...
LiteralCommandNode<?> commandNode = CommodoreFileFormat.parse(is);
CommandNode hologramCmd = commandNode.getChild("hologram");
LiteralCommandNode child = LiteralArgumentBuilder.literal("holo")
.redirect(hologramCmd)
.build();
commandNode.addChild(child);
commodore.register(command, commandNode);which is obviously not that great since I'd have to write something like shown above for all aliases. Is there a better solution for this?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed