Skip to main content

Module cli

Module cli 

Source
Expand description

CLI utilities for simple terminal output.

This module provides lightweight utilities for CLI applications that don’t need the full TUI infrastructure. The primary use case is showing loading spinners and progress indicators in command-line tools.

§Example

use presentar_terminal::cli::Spinner;

// Start spinner while loading
let spinner = Spinner::new().start();

// Do some work...
std::thread::sleep(std::time::Duration::from_secs(2));

// Stop and clear spinner
spinner.stop();
println!("Done!");

Structs§

Spinner
A simple CLI spinner for indicating loading/progress.
SpinnerHandle
Handle to a running spinner, used to stop it.

Enums§

SpinnerStyle
Spinner animation frames.