feat(pgpm): rename --template-path to --template flag#674
Merged
pyramation merged 3 commits intomainfrom Jan 28, 2026
Merged
Conversation
- Rename --template-path to --template with -t alias - --template parses 'dir/fromPath' format (e.g., --template pnpm/module) - When --template is provided, it takes precedence over --dir and positional args - Keep backward compatibility with --template-path (deprecated) - Update tests to use new --template flag
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)