Skip to content

✨ feat(cli): Add executable file check for mq-* subcommands#1265

Merged
harehare merged 6 commits intomainfrom
fix/executable-check
Feb 12, 2026
Merged

✨ feat(cli): Add executable file check for mq-* subcommands#1265
harehare merged 6 commits intomainfrom
fix/executable-check

Conversation

@harehare
Copy link
Copy Markdown
Owner

  • Add is_executable_file() to check if file is executable on Unix
  • Check for executable extensions on Windows (.exe, .cmd, .bat, .com)

- Add is_executable_file() to check if file is executable on Unix
- Check for executable extensions on Windows (.exe, .cmd, .bat, .com)
- Update tests to verify non-executable files are filtered out
- Improves subcommand discovery by excluding non-executable files
Copilot AI review requested due to automatic review settings February 11, 2026 13:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds platform-aware detection of executable mq-* binaries when discovering subcommands, so only runnable entries are surfaced.

Changes:

  • Filter discovered mq-* entries to executables via a new is_executable_file() helper (Unix permission bits, Windows executable extensions).
  • Extend existing tests to include a non-executable mq-* entry and assert it’s excluded.

Copilot AI review requested due to automatic review settings February 11, 2026 23:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

@harehare harehare force-pushed the fix/executable-check branch from ec5e9b7 to be9749a Compare February 12, 2026 10:58
Copilot AI review requested due to automatic review settings February 12, 2026 12:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@harehare harehare merged commit 3dbf5ad into main Feb 12, 2026
6 checks passed
@harehare harehare deleted the fix/executable-check branch February 12, 2026 12:44
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.

2 participants