ever-brain / brain /cli.py
AlexKurian's picture
feat: add persona management and authentication modules to CLI
df55394
Raw
History Blame Contribute Delete
1.4 kB
"""Brain CLI — entry point for the cognition operating system."""
import typer
from brain.commands.create import create
from brain.commands.use import use
from brain.commands.status import status
from brain.commands.import_brain import import_brain
from brain.commands.attach import attach
from brain.commands.sync import sync
from brain.commands.detach import detach
from brain.commands.connect import connect
from brain.commands.delete import delete
from brain.commands.init import init
from brain.commands.persona import app as persona_app
from brain.commands.auth import app as auth_app
app = typer.Typer(
name="ever-brain",
help="Ever Brain — A Cognition Operating System for AI Coding Agents.",
no_args_is_help=False,
invoke_without_command=True,
)
@app.callback(invoke_without_command=True)
def main(ctx: typer.Context) -> None:
"""Ever Brain — persistent portable cognition for AI agents."""
if ctx.invoked_subcommand is None:
status()
app.command("create")(create)
app.command("use")(use)
app.command("status")(status)
app.command("import")(import_brain)
app.command("attach")(attach)
app.command("sync")(sync)
app.command("detach")(detach)
app.command("connect")(connect)
app.command("delete")(delete)
app.command("init")(init)
app.add_typer(persona_app, name="persona")
app.add_typer(auth_app, name="auth")
if __name__ == "__main__":
app()