Skip to main content

Crate bingle_cli

Crate bingle_cli 

Source
Expand description

Library surface for the bingle_cli binary.

The binary keeps its command dispatch and process-exiting logic in main.rs, but pure argument parsers live here so they can be unit tested from the test tree (per CLAUDE.md, tests are kept out of the source files).

Modules§

chat
Argument parsing for the chat subcommand.
chat_receive
Receive path for the chat command: turn an inbound engine message into a printed line and a persisted state change.
chat_register
First-run registration decision for the chat command.
chat_repl
Pure pieces of the chat interactive REPL: the current recipient, the prompt it renders, and the classification of an input line into an action. The terminal/readline glue and the engine calls live in cmd_chat; keeping this logic pure makes the dispatcher unit-testable without IO.
chat_send
Outbound send + retry for the chat REPL, built on BingleLocal’s pending-message model.
chat_state
Bridge between a BingleLocal --state_file and the chat command’s engine configuration.