Closed simonjbeaumont closed 1 year ago
We should probably fail on unknown keys, tbh. The danger of this issue is too real. We already fail if you provide an invalid feature flag, so I'd be supportive of going even more strict.
Yeah, OK. I can see this biting with the additionalImports
(cf. --additional-import
) too.
Is technically breaking an interface, so propose we pull into the 1.0 milestone.
Yeah. On the CLI, since you provide them one by one, the singular makes sense, but in the config file you provide them all at once, hence the plural. But typos are common and our diagnostics should be better here.
And I'd be for an error here, not even a warning. It's invalid input and the adopter should fix it ASAP, otherwise they might think they're enabling a feature or similar but they're not.
Is technically breaking an interface, so propose we pull into the 1.0 milestone.
True, changed.
Hello again, I'd like to try this out if possible.
@PARAIPAN9, sure go ahead! 🙏
Example, if you use
featureFlag
instead offeatureFlags
:This is easy to do because the CLI is
--feature-flag
(taking multiple).We already print the following to stdout:
Probably should print something here about unknown keys?