Components

Explore all ZFish components and learn how to use them in your applications.

βš™οΈArgument Parsing
Component
Command-line argument parsing with flags, options, and subcommands
Argument Parsing Example
use zfish::args::Args; let mut args = Args::new(); args.add_flag("verbose", "Verbose output"); let matches = args.parse()?;
Output
Usage: program [OPTIONS]
Learn More
🎨Colors & Styles
Component
Rich terminal coloring with 16, 256, and true color support
Colors & Styles Example
use zfish::style::Color; print("Hello", Color::Red); print("World", Color::Green.bold());
Output
HelloWorld
Learn More
πŸ“ŠProgress Bars
Component
Beautiful progress bars with multiple styles and real-time updates
Progress Bars Example
use zfish::progress::Progress; let mut progress = Progress::new(100); progress.set_position(50);
Output
[=========================                     ] 50.0% (50/100)
Learn More
πŸ“‹Tables
Component
Automated table rendering with Unicode support and custom styling
Tables Example
use zfish::table::Table; let mut table = Table::new(); table.add_row(["Name", "Age", "City"]); table.add_row(["Alice", "25", "NYC"]); table.print();
Output
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”
β”‚ Name  β”‚ Age β”‚ Cityβ”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€
β”‚ Alice β”‚ 25  β”‚ NYC β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”˜
Learn More
❓Interactive Prompts
Component
User-friendly prompts for input, confirmation, and selection
Interactive Prompts Example
use zfish::prompt::Confirm; let answer = Confirm::new("Continue?") .prompt()?;
Output
? Continue? (y/N) y
Learn More
πŸ“Logger
Component
Structured logging with levels, colors, and flexible output
Logger Example
use zfish::log::{Logger, Level}; let logger = Logger::new(); logger.info("Application started");
Output
[INFO] Application started
Learn More
πŸ–₯️Terminal Control
Component
Full terminal manipulation with cursor control and screen management
Terminal Control Example
use zfish::term; term::clear_screen()?; term::move_cursor(10, 5)?;
Output
(Terminal screen cleared and cursor moved to position 10,5)
Learn More
Zero Dependencies
ZFish is built on top of Rust's standard library only

Unlike other CLI frameworks, ZFish has zero external dependencies. This ensures fast compile times, small binary sizes, and maximum compatibility.

βœ… No dependenciesβœ… Fast compilationβœ… Small binariesβœ… Maximum compatibility