Skip to main content

Module cli

Module cli 

Source
Expand description

CLI module - handles command-line interface and application startup

Modules§

client_startup
Client startup logic for TUI mode
crash_restore
Restore the terminal if the process dies on a native fatal signal.
easy_startup
Easy protocol startup logic
input_state
Simple multi-line input state management
management
Management surface for creating and updating servers and clients.
model_select
Startup model resolution shared by the interactive UIs (rolling TUI and full-screen dashboard): decide which model to use from args/settings, validate or auto-select it, and produce the human-readable lines the UI should show about the outcome.
server_startup
Server startup logic for TUI mode
theme

Structs§

Args
NetGet - LLM-Controlled Network Application

Constants§

MCP_TOKEN_ENV
Environment variable read when --mcp-token is not passed. Lives here rather than in mcp_stdio::http_guard because that module is compiled only with mcp-stdio / mcp-http, and Args is parsed at every feature set.

Functions§

create_llm_client
Create the LLM client from CLI args, branching on –openai-url vs –ollama-url
execute_due_tasks_owned_public
Execute due tasks owned by a service. Closing that service cancels only the executions it launched, retaining task definitions for other AppState owners.
execute_due_tasks_public
Execute all tasks that are due (public wrapper for non-interactive mode)
run
Main CLI entry point