✨ feat(run): support PATH lookup for external subcommands#1253
Merged
✨ feat(run): support PATH lookup for external subcommands#1253
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds system PATH discovery for external mq-<name> subcommands (in addition to ~/.mq/bin) by integrating the which crate.
Changes:
- Add
whichdependency to enable PATH lookup for external subcommands. - Update external-subcommand dispatch to accept a resolved
command_path. - Prefer
~/.mq/bin/mq-<name>when present; otherwise try resolvingmq-<name>viaPATH.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| crates/mq-run/src/cli.rs | Adds PATH fallback (via which) and adjusts external command execution to take a resolved path. |
| crates/mq-run/Cargo.toml | Introduces the which dependency required for PATH lookup. |
External subcommands (mq-<name>) are now discovered via PATH using the `which` crate when not found in ~/.mq/bin, making it easier to install and use external subcommands system-wide.
…ling get_external_commands_dir
bc0b6db to
40497cb
Compare
cderv
added a commit
to cderv/r-bucket
that referenced
this pull request
Feb 11, 2026
mq v0.5.14 now searches system PATH for mq-<name> executables (harehare/mq#1253), so copying mq-tui into ~/.mq/bin/ is no longer needed. Scoop's shim on PATH is sufficient. Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.
External subcommands (mq-) are now discovered via PATH using the
whichcrate when not found in ~/.mq/bin, making it easier to install and use external subcommands system-wide.