DoubleF3lix / Allay

A parser to convert a descriptive text format into minecraft text components
MIT License
12 stars 2 forks source link

Feature: beet plugin template / pattern support #8

Closed RitikShah closed 2 years ago

RitikShah commented 2 years ago

Main feature is with the beet plugin. Allows templates and patterns to function properly by making the Parser a field inside the plugin.

ALLAYDEFS will now update the templates and patterns and can be used across a beet project.

Alternatively, there is also config support to define your patterns and templates in your config file. This is nice for those messing with sub-pipelines and manually overriding the config temporarily to be able to load their templates as they please.

Alongside this feature, there is another bug fix that was needed for templates to be operational. The template feature no longer requires arguments to function. This was actually a single line removal of the if args line since the enumeration of arguments will only occur if there are args to enumerate!

Let me know if you have any questions. I ran your tests locally (I had to temporarily edit the file to read the local file since your pathfinding for the test file didn't work for me). I also tested your template and pattern example from discord alongside an example with PlayerDB.