Skip to content

Conversation

@SanjeevLakhwani
Copy link
Contributor

Enable running bentoctl from any directory via a global wrapper script.
Add argcomplete integration for dynamic tab completions in bash/zsh.

  • Add bin/bentoctl wrapper that handles BENTO_HOME and venv activation
  • Integrate argcomplete into entry.py for dynamic completions
  • Add static zsh completion script as fallback
  • Add documentation for global installation

Enable running bentoctl from any directory via a global wrapper script.
Add argcomplete integration for dynamic tab completions in bash/zsh.

- Add bin/bentoctl wrapper that handles BENTO_HOME and venv activation
- Integrate argcomplete into entry.py for dynamic completions
- Add static zsh completion script as fallback
- Add documentation for global installation
- Add static bash completion script for non-argcomplete setups
- Expand bash installation instructions in global-install.md
Defer all heavy module imports until execution time using lazy loading.
This allows argcomplete to generate completions without loading the
config module (which parses docker-compose files).

- Add lazy import functions for all helper modules
- Use static service lists for argument choices during completion
- Import modules only when their functions are actually called
- Remove unused import 'os'
- Break long lines to comply with 79 char limit
- Shorten help text where needed
Base automatically changed from bentoctl/db-migrate to releases/v20 November 25, 2025 20:00
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