Coverage for src / lilbee / cli / commands / __init__.py: 100%
31 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-06-28 01:01 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-06-28 01:01 +0000
1"""CLI command subpackage.
3Top-level Typer commands are split across submodules by domain. This
4``__init__`` registers each command function on the shared ``app``.
5Top-level commands are listed first so ``lilbee --help`` shows them
6above the ``setup`` and ``wiki`` sub-typers (attached at the bottom).
7"""
9from __future__ import annotations
11from lilbee.cli.app import app
12from lilbee.cli.commands import dataset, ingest_sync, memory, meta, search_chat, servers, wiki
13from lilbee.cli.commands import setup as setup_module
15# Top-level commands listed first so `lilbee --help` shows them before the
16# `setup` and `wiki` sub-typers, which read better grouped at the bottom.
17app.command()(search_chat.search)
18app.command(name="sync")(ingest_sync.sync_cmd)
19app.command()(ingest_sync.rebuild)
20app.command()(ingest_sync.index)
21app.command()(ingest_sync.add)
22app.command()(ingest_sync.chunks)
23app.command()(ingest_sync.remove)
24app.command(name="export")(dataset.export_cmd)
25app.command(name="import")(dataset.import_cmd)
26app.command()(search_chat.ask)
27app.command()(search_chat.chat)
28app.command(name="use-embedder")(search_chat.use_embedder)
29app.command()(meta.version)
30app.command(name="self-check")(setup_module.self_check_cmd)
31app.command(name="self-check-extras")(setup_module.self_check_extras_cmd)
32app.command()(meta.status)
33app.command()(meta.reset)
34app.command()(meta.init)
35app.command()(servers.serve)
36app.command()(setup_module.token)
37app.command()(search_chat.topics)
38app.command()(setup_module.login)
39app.command(name="mcp")(servers.mcp_cmd)
41# Sub-typers come last so `setup` and `wiki` follow the top-level commands
42# in `--help`.
43app.add_typer(setup_module.setup_app, name="setup")
44app.add_typer(wiki.wiki_app, name="wiki")
45app.add_typer(memory.memory_app, name="memory")
47__all__ = ["app"]