The future of Factory #156
namit-chandwani
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Localizer can be part of starter template |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of now, this is how our Factory struct looks like:
In the ideal scenario, Factory should be initialized in the host CLI and passed down to its plugins.
However, in the current setup of host and plugin examples, the Factory is being initialized in the plugins themselves.
The only thing blocking us from achieving what we want is the Localizer.
Since each CLI's localizer configuration is unique, it doesn't make much sense to share it between host and their plugins.
One way to fix this is by removing Localizer field from the Factory struct (as proposed by @wtrocki in charmil CLI for starter project #155 (comment))
Let's come up with some more ideas for this and then decide which one to move forward with.
CC @aerogear/charmil-core
Ref: #155 (comment), #155 (comment), #153
Beta Was this translation helpful? Give feedback.
All reactions