Coverage for src / qdrant_loader / cli / commands / __init__.py: 67%

18 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-06-11 09:38 +0000

1"""CLI commands package — lazy imports for fast startup.""" 

2 

3 

4def __getattr__(name: str): 

5 if name == "run_init": 

6 from .init import run_init 

7 

8 return run_init 

9 if name == "run_pipeline_ingestion": 

10 from .ingest import run_pipeline_ingestion 

11 

12 return run_pipeline_ingestion 

13 if name == "serve_cmd": 

14 from .serve_cmd import serve_cmd 

15 

16 return serve_cmd 

17 if name == "jobs_cmd": 

18 from .jobs_cmd import jobs_cmd 

19 

20 return jobs_cmd 

21 if name == "run_webhook_command": 

22 from .webhook_cmd import run_webhook_command 

23 

24 return run_webhook_command 

25 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") 

26 

27 

28__all__ = [ 

29 "run_init", 

30 "run_pipeline_ingestion", 

31 "serve_cmd", 

32 "jobs_cmd", 

33 "run_webhook_command", 

34]