Skip to content

Added values list to generated classes #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

vsly-ru
Copy link

@vsly-ru vsly-ru commented Jun 21, 2022

What does this change?

This PR implements a feature requested in #186.
It adds values getter at the end of generated classes for directories with the list of all statement' names.

Possible problem:

Name collision of values with an existing asset. Feel free to suggest some less generic name so I'll rename it (or simply edit it yourself). I just don't have any ideas about naming conventions for a predetermined field for this project.

Possible improvement:

Make this list optional with some flag.

@vsly-ru vsly-ru marked this pull request as draft June 21, 2022 08:24
@vsly-ru vsly-ru changed the title added values list to generated classes Added values list to generated classes Jun 21, 2022
@vsly-ru vsly-ru marked this pull request as ready for review June 21, 2022 08:41
@stefanschaller
Copy link

Like it! Would be great for caching icons. @wasabeef

@JulianBissekkou
Copy link

I was about to implement the same feature, because I need this for 2 of my projects! Great work.
@wasabeef Can you take a look and provide feedback to this PR?

@wasabeef
Copy link
Member

wasabeef commented Sep 29, 2022

@vsly-ru

Thank you for your PR, I released v5.0.0 and v5.0.1. The version includes the values list feature.

cc: @stefanschaller @JulianBissekkou

@wasabeef wasabeef closed this Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants