feat(pgpm): rename --template-path to --template flag #674
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
Renames the
--template-pathflag to--template(with-talias) for a cleaner CLI experience. The new--templateflag can parse combined paths likepnpm/moduleand automatically extract thedirandfromPathcomponents.New usage:
Backward compatibility is maintained -
--template-pathstill works but is deprecated.Updates since last revision
-walias: Added missing CLI alias mapping for-w→createWorkspace. Without this,pgpm init --template pgpm/module -wwould fail with "NOT_IN_WORKSPACE" error.--templateand-wflags in the Getting Started section and updated the Templates section to reference--templateinstead of--template-path.Review & Testing Checklist for Human
--templatewith-wflag together: Runpgpm init --template pgpm/module -woutside a workspace - should create workspace first, then module inside it--template workspace(no slash),--template pnpm/sub/module(multiple slashes), and--template /module(leading slash)--template pnpm/moduleand--dir supabaseare provided,--templatesilently overrides--dir- verify this is the desired behavior--template-path pgpm/workspacestill works as expectedRecommended test plan:
Notes
This PR depends on the pgpm-boilerplates repo having the
pgpm/folder (merged in PR #25).Link to Devin run: https://app.devin.ai/sessions/86fc90000ad24b2cacf3b750dc077be3
Requested by: Dan Lynch (@pyramation)