Feat/completion (#240)

* feat: add OpenRouter usage examples

* feat: add HTPS headers

* feat: add shell completion generation via clap_complete

* feat: add shell completion generation via clap_complete

* feat: add shell completion generation via clap_complete

* Refactor completion: use clap_complete::Shell directly, improve tests, remove tracing duplication, fix .env.example and Cargo.toml

* fix: rename init_cli_logging to init_cli_tracing (sync with main)

---------

Co-authored-by: BroccoliFin <[email protected]>
Co-authored-by: firat.sertgoz <[email protected]>
This commit is contained in:
DevBroco
2026-02-22 19:08:43 +00:00
committed by GitHub
co-authored by BroccoliFin firat.sertgoz
parent b8901baafd
commit 7f68207f1e
9 changed files with 5953 additions and 211 deletions
+5
View File
@@ -11,6 +11,7 @@
//! - Active health diagnostics (`doctor`)
//! - Checking system health (`status`)
mod completion;
mod config;
mod doctor;
mod mcp;
@@ -22,6 +23,7 @@ mod service;
pub mod status;
mod tool;
pub use completion::Completion;
pub use config::{ConfigCommand, run_config_command};
pub use doctor::run_doctor_command;
pub use mcp::{McpCommand, run_mcp_command};
@@ -118,6 +120,9 @@ pub enum Command {
/// Show system health and diagnostics
Status,
/// Generate shell completion scripts
Completion(Completion),
/// Run as a sandboxed worker inside a Docker container (internal use).
/// This is invoked automatically by the orchestrator, not by users directly.
Worker {