Skip to content

feat: add run command to CLI #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: gh/ezyang/202/base
Choose a base branch
from
Open

Conversation

ezyang
Copy link
Owner

@ezyang ezyang commented Apr 22, 2025

Stack from ghstack (oldest at bottom):

Add a codemcp run COMMAND to the cli which runs the command as defined in codemcp.toml the same way the RunCommand tool does it.

ef0b2d8  (Base revision)
b00e0fa  Add run command to CLI
51594c3  Add import for get_command_from_config
9ad7dd6  Add end-to-end test for run command CLI
4253b3d  Auto-commit format changes
875d7e5  Auto-commit lint changes
HEAD     Update the test assertions to match the actual error message

codemcp-id: 277-feat-add-run-command-to-cli

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 22, 2025
Add a `codemcp run COMMAND` to the cli which runs the command as defined in codemcp.toml the same way the RunCommand tool does it.

```git-revs
ef0b2d8  (Base revision)
b00e0fa  Add run command to CLI
51594c3  Add import for get_command_from_config
9ad7dd6  Add end-to-end test for run command CLI
4253b3d  Auto-commit format changes
875d7e5  Auto-commit lint changes
HEAD     Update the test assertions to match the actual error message
```

codemcp-id: 277-feat-add-run-command-to-cli
ghstack-source-id: 8a59de1
Pull-Request-resolved: #270
[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 22, 2025
Add a `codemcp run COMMAND` to the cli which runs the command as defined in codemcp.toml the same way the RunCommand tool does it.

```git-revs
ef0b2d8  (Base revision)
b00e0fa  Add run command to CLI
51594c3  Add import for get_command_from_config
9ad7dd6  Add end-to-end test for run command CLI
4253b3d  Auto-commit format changes
875d7e5  Auto-commit lint changes
402a071  Update the test assertions to match the actual error message
29ae4e6  Update CLI run command to stream output to terminal in real-time
62d2cd0  Update test to use --no-stream flag for consistent testing
980e370  Update test_run_command_with_args to use --no-stream flag
2efae9a  Update test_run_command_not_found to use --no-stream flag
dd4060e  Update test_run_command_empty_definition to use --no-stream flag
8601a6a  Add test for streaming mode
d2e92b9  Fix test for streaming mode to work with proper mocking
88fd447  Auto-commit format changes
HEAD     Auto-commit lint changes
```

codemcp-id: 277-feat-add-run-command-to-cli
ghstack-source-id: 030b62c
Pull-Request-resolved: #270
[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 22, 2025
Add a `codemcp run COMMAND` to the cli which runs the command as defined in codemcp.toml the same way the RunCommand tool does it.

```git-revs
ef0b2d8  (Base revision)
b00e0fa  Add run command to CLI
51594c3  Add import for get_command_from_config
9ad7dd6  Add end-to-end test for run command CLI
4253b3d  Auto-commit format changes
875d7e5  Auto-commit lint changes
402a071  Update the test assertions to match the actual error message
29ae4e6  Update CLI run command to stream output to terminal in real-time
62d2cd0  Update test to use --no-stream flag for consistent testing
980e370  Update test_run_command_with_args to use --no-stream flag
2efae9a  Update test_run_command_not_found to use --no-stream flag
dd4060e  Update test_run_command_empty_definition to use --no-stream flag
8601a6a  Add test for streaming mode
d2e92b9  Fix test for streaming mode to work with proper mocking
88fd447  Auto-commit format changes
c6c1813  Auto-commit lint changes
125536b  Fix test to prevent hanging in pytest by ensuring proper cleanup of mocks
ff9a32b  Add proper process cleanup on keyboard interrupt
6972726  Fix coroutine warning by properly mocking asyncio.run
285cf01  Complete rewrite of test file to properly mock async functions and prevent warnings
a588d61  Auto-commit format changes
HEAD     Auto-commit lint changes
```

codemcp-id: 277-feat-add-run-command-to-cli
ghstack-source-id: 391e2b3
Pull-Request-resolved: #270
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