Skip to main content

Crate scrat

Crate scrat 

Source
Expand description

Library interface for the scrat 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

The command() function returns the clap Command for generating man pages and shell completions via xtask.

Modules§

commands
Command implementations
terminal
Terminal image rendering via inline graphics protocols.

Structs§

Cli
Command-line interface definition for scrat.

Enums§

ColorChoice
Color output preference.
Commands
Available subcommands for the CLI.

Functions§

command
Returns the clap command for documentation generation.