feat: use optionsFrom for dynamic license options #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the hardcoded license options array with
optionsFrom: "licenses"to dynamically load available licenses from create-gen-app. This ensures the license list stays in sync with create-gen-app's supported licenses, including the new CLOSED license option.Dependency: constructive-io/dev-utils#27 must be merged and released first (implements
optionsFromsupport in inquirerer and registers thelicensesresolver).Review & Testing Checklist for Human
create-gen-appis released before merging this PRpgpm init workspaceand verify the license dropdown shows all options: MIT, APACHE-2.0, BSD-3-CLAUSE, CLOSED, GPL-3.0, ISC, MPL-2.0, UNLICENSETest plan: After dev-utils PR #27 is merged and released, update your local
create-gen-appdependency, then runpgpm init workspaceand check that the license dropdown is populated with all available licenses.Notes
optionsFromfails to resolve (e.g., resolver not registered), the license question will have no options - this is a silent failure mode