Skip to content

Comments

feat(cli): add list command#116

Open
felixzsh wants to merge 6 commits intomixedbread-ai:mainfrom
felixzsh:feat/list-command
Open

feat(cli): add list command#116
felixzsh wants to merge 6 commits intomixedbread-ai:mainfrom
felixzsh:feat/list-command

Conversation

@felixzsh
Copy link

@felixzsh felixzsh commented Jan 12, 2026

the list command prints all the working directories where all the watch commands were ran, this is useful for scripting or just knowing how many and which watch processes are currently running on the system


Note

Adds a new mgrep list command to enumerate running mgrep watch processes and print their working directories (one per line; not supported on Windows).

  • Introduces src/commands/list.ts using ps-list and pid-cwd to detect watchers and output their CWDs
  • Wires command into CLI via src/index.ts
  • Updates README.md with usage and examples for mgrep list
  • Adds dependencies: ps-list, pid-cwd

Written by Cursor Bugbot for commit ee6baf8. This will update automatically on new commits. Configure here.

the list command prints all the working directories where all the watch
commands were ran, this is useful for scripting or just knowing how many
and which watch processes are currently running on the system
since ps-list cwd property gives the exact command used to create the
process in matter, check if cwd strictly containts the base watch
command is cleaner, and by no means should give false positives.
since ps-list doesnt give useful properties in windows machines, avoid
silet fail and explictly print the situation.
@felixzsh felixzsh changed the title feat: add list command feat(cli): add list command Jan 15, 2026
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