Skip to main content

Crate bito

Crate bito 

Source
Expand description

Library interface for the bito CLI.

This crate exposes the CLI’s argument parser and command structure as a library, primarily for documentation generation and testing. The actual entry point is in main.rs.

§Structure

  • Cli - The root argument parser (clap derive)
  • Commands - Available subcommands
  • commands - Command implementations

§Documentation Generation

xtask builds man pages and shell completions from Cli through librebar’s generators, which render the same augmented command tree that librebar::cli::parse uses at runtime.

Modules§

commands
Command implementations.
server
MCP (Model Context Protocol) server implementation.

Structs§

Cli
Command-line interface definition for bito.
IssuesFound
A check ran to completion and the input did not meet a threshold.

Enums§

Commands
Available subcommands for the CLI.

Constants§

EXIT_ISSUES_FOUND
Exit code for a completed run that found issues in the input.
EXIT_TOOL_ERROR
Exit code for a run that could not complete.

Functions§

schema_metadata
Machine-readable declaration of bito’s exit contract.