This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
Allow parameters to be specified through configuration file #74
Labels
enhancement
New feature or request
As we begin to add (#65) and consider (#57, #72) new options for the
generate
command, I think it's likely that the number of options for thegenerate
command will soon exceed what can be reasonably expressed through command-line arguments alone.Maybe this isn't inevitable. If we took seriously the canon of parsimony in our API design, perhaps we'd find that a small, fixed set of parameters are all that are necessary. This could all be a trap, a slippery slope that projects fall into all too frequently in a rush to add functionality. I'd love to be hear better arguments about limiting feature creep.
But from where I am right now, it's hard to look at, say, the configuration options for jazzy or other comparable tools and think that we'll find a way to solve the same problem without a similar number of settings. Taken altogether in aggregate, you start to get the sense about the inherent complexity of the problem.
So, assuming this is indeed something we'll need, it's probably something we should figure out before 1.0.0. Here's what I'm thinking:
ArgumentParser
to make optionsCodable
. Unless this already exists, this is something that would be useful beyondswift-doc
and a good candidate for an upstream patch or separate library..swift-doc.json
(spelling?) file and read those as a base configuration, and add an option for where to look for a configuration file.UserDefaults
).The text was updated successfully, but these errors were encountered: