Skip to content

Allow unknown commands to passthrough as pm run scripts#29

Merged
fdarian merged 4 commits intomainfrom
ff-59-allow-for-passthrough-command-pm-scripts
Feb 26, 2026
Merged

Allow unknown commands to passthrough as pm run scripts#29
fdarian merged 4 commits intomainfrom
ff-59-allow-for-passthrough-command-pm-scripts

Conversation

@fdarian
Copy link
Copy Markdown
Owner

@fdarian fdarian commented Feb 26, 2026

Summary

  • Add resolveArgv function to automatically prefix unknown commands with run
  • Unknown commands (not in pm's known command set) are now transparently passed through as pm run <script>
  • Known commands and flags (starting with -) are left unchanged
  • Enables natural command execution like pm devpm run dev without explicit run keyword

Test plan

  • All unit tests pass for resolveArgv with various scenarios
  • Known commands (i, install, add, remove, run, ls) are unchanged
  • Unknown commands are prefixed with run while preserving trailing arguments
  • Flags and no-arg cases are handled correctly

Unknown CLI args (e.g. `pm dev`) are now intercepted before Effect CLI
processes them — if the first positional arg isn't a registered
subcommand, `run` is inserted so it becomes `pm run dev`.
@fdarian fdarian force-pushed the ff-59-allow-for-passthrough-command-pm-scripts branch from 1f9b28f to 123f0f1 Compare February 26, 2026 02:22
@fdarian fdarian merged commit 1d00fca into main Feb 26, 2026
1 check passed
@fdarian fdarian deleted the ff-59-allow-for-passthrough-command-pm-scripts branch February 26, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant