-
Notifications
You must be signed in to change notification settings - Fork 46
Add a basic shell #438
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
Add a basic shell #438
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds an interactive shell feature to the Broker CLI using the click-shell library. Users can enter an interactive REPL-like environment where they can execute broker commands without repeatedly typing the broker prefix.
- Adds
click-shellas a new dependency - Creates an interactive shell command accessible via
broker shell - Registers existing broker commands (checkout, checkin, inventory, execute, providers, config) to work within the shell
- Adds a shell-only
reload_configcommand to clear the settings cache
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| pyproject.toml | Adds click-shell dependency to enable interactive shell functionality |
| broker/commands.py | Implements the broker_shell function with command registration, adds the shell CLI command entry point, and creates a shell-only reload_config command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This adds a very basic "broker shell" command that enters a basic interactive shell. This can be expanded in the future.
This switch is pretty straight forward and continues the trend of beautifying the cli.
This adds a very basic "broker shell" command that enters a basic interactive shell. This can be expanded in the future.