What problem does it solve?
Developing new command-line interface (CLI) tools or extending existing ones can be complex, requiring knowledge of framework patterns, service architecture, and proper error handling. This Skill provides a comprehensive guide to developing AIDB's dev-cli commands and services using the Click framework, ensuring consistency, reusability, and robust error management. It helps developers quickly build powerful CLI tools.
Core Features & Use Cases
- Command & Service Development: Learn to create new CLI commands and encapsulate business logic in reusable services.
- Click Framework Best Practices: Master decorator stacking, custom parameter types, and context injection for robust CLI design.
- Unified Error Handling: Implement consistent error management across all CLI commands using
@handle_exceptions.
- Use Case: When you need to automate a repetitive development task, such as building all language adapters or running a specific test suite with custom parameters, use this skill to create a new
dev-cli command that simplifies the operation for yourself and other developers.
Quick Start
Show me how to add a new dev-cli command with an option and register it.