zfish 0.1.10

Ultra-light, zero-dependency Rust CLI framework for building beautiful command-line applications
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
# ๐ŸŸ zfish โ€” Ultra-Light CLI Framework for Rust

<p align="center">
  <img src="Logo.svg" alt="zfish Logo" width="200"/>
</p>

<p align="center">
  <strong>Soar above the complexity</strong>
</p>

<p align="center">
  <a href="https://crates.io/crates/zfish"><img src="https://img.shields.io/crates/v/zfish.svg" alt="Crates.io"/></a>
  <a href="https://docs.rs/zfish"><img src="https://docs.rs/zfish/badge.svg" alt="Documentation"/></a>
  <a href="https://zfish-devdocs.vercel.app"><img src="https://img.shields.io/badge/dev%20docs-vercel-black.svg" alt="Developer Docs"/></a>
  <a href="https://sprinkle-toque-13b.notion.site/ZFish-29d4eaaebc9d80bd82f3c27833a92232"><img src="https://img.shields.io/badge/roadmap-notion-000000.svg" alt="Roadmap"/></a>
  <a href="https://github.com/JeetKarena/ZFish/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"/></a>
  <a href="https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html"><img src="https://img.shields.io/badge/MSRV-1.90-blue.svg" alt="MSRV"/></a>
  <a href="https://github.com/JeetKarena/ZFish/actions"><img src="https://github.com/JeetKarena/ZFish/workflows/CI/badge.svg" alt="CI Status"/></a>
</p>

<p align="center">
  <a href="https://sonarcloud.io/dashboard?id=JeetKarena_ZFish"><img src="https://sonarcloud.io/api/project_badges/measure?project=JeetKarena_ZFish&metric=alert_status" alt="Quality Gate"/></a>
  <a href="https://sonarcloud.io/dashboard?id=JeetKarena_ZFish"><img src="https://sonarcloud.io/api/project_badges/measure?project=JeetKarena_ZFish&metric=security_rating" alt="Security Rating"/></a>
  <a href="https://sonarcloud.io/dashboard?id=JeetKarena_ZFish"><img src="https://sonarcloud.io/api/project_badges/measure?project=JeetKarena_ZFish&metric=sqale_rating" alt="Maintainability Rating"/></a>
  <a href="https://sonarcloud.io/dashboard?id=JeetKarena_ZFish"><img src="https://sonarcloud.io/api/project_badges/measure?project=JeetKarena_ZFish&metric=coverage" alt="Coverage"/></a>
  <a href="https://sonarcloud.io/dashboard?id=JeetKarena_ZFish"><img src="https://sonarcloud.io/api/project_badges/measure?project=JeetKarena_ZFish&metric=bugs" alt="Bugs"/></a>
</p>

---

> ๐Ÿ“‹ **[View the full roadmap and feature status on Notion โ†’]https://sprinkle-toque-13b.notion.site/ZFish-29d4eaaebc9d80bd82f3c27833a92232**

---

## โœจ Features

- ๐Ÿš€ **Zero Dependencies** โ€” No third-party crates, only `std`
- ๐ŸŽจ **Rich Styling** โ€” 16 ANSI colors + 256-color palette
- โšก **Blazing Fast** โ€” Cold start <5ms, parse 1M flags in ~200ms
- ๐Ÿ”’ **Memory Safe** โ€” `#![forbid(unsafe_code)]` in public API
- ๐ŸŒ **Cross-Platform** โ€” Linux, macOS, Windows (tier-1 support)
- ๐Ÿ“ฆ **Lightweight** โ€” Minimal binary size, fast compile times
- ๐ŸŽฏ **Intuitive API** โ€” Ergonomic design, great docs
- ๐Ÿ”ฎ **Edition 2024** โ€” Built with the latest Rust features

### ๐ŸŽ What's Included

| Component | Description | Examples |
|-----------|-------------|----------|
| **Colors** | 16 ANSI + 256-color palette, 8 text styles | `Color::Red.paint("text")` |
| **Args** | Flag parsing, options, positional arguments | `--verbose`, `-abc`, `file.txt` |
| **Commands** | Git-style subcommands with auto-help | `app init`, `app build --release` |
| **Progress** | 4 bar styles (bar, spinner, dots, arrows) | Loading, downloading, processing |
| **Tables** | 5 box styles, alignment, Unicode-aware | Data display, reports, grids |
| **Prompts** | Text input, password, confirm dialogs | Interactive CLIs, wizards |
| **Logging** | 5 levels (error โ†’ trace), timestamps | Debug output, application logs |
| **Terminal** | Clear, cursor control, size detection | TUI helpers, screen management |

> ๐Ÿ“– **See the [Feature Matrix]#-feature-matrix below for detailed capabilities**

---

## ๐Ÿš€ Quick Start

### Installation

Add zfish to your `Cargo.toml`:

```toml
[dependencies]
zfish = "0.1.10"
```

**Alternative: Install from GitHub Packages**

Download the `.crate` file from [GitHub Releases](https://github.com/JeetKarena/ZFish/releases):

```bash
# Download the latest release
wget https://github.com/JeetKarena/ZFish/releases/download/v0.1.10/zfish-0.1.10.crate

# Verify checksum (optional)
wget https://github.com/JeetKarena/ZFish/releases/download/v0.1.10/zfish-0.1.10.crate.sha256
sha256sum -c zfish-0.1.10.crate.sha256

# Install from local crate
cargo install --path zfish-0.1.10.crate
```

### Hello, Colorful World!

```rust
use zfish::Color;

fn main() {
    println!("{}", Color::Green.paint("โœ“ Success!"));
    println!("{}", Color::Red.paint("โœ— Error!"));
    println!("{}", Color::Yellow.paint("โš  Warning!"));
}
```

### Argument Parsing

```rust
use zfish::Args;

fn main() {
    let args = Args::parse();
    
    if args.has_flag("verbose") || args.has_flag("v") {
        println!("Verbose mode enabled");
    }
    
    if let Some(file) = args.get_option("file") {
        println!("Processing: {}", file);
    }
    
    for arg in &args.positional {
        println!("Positional argument: {}", arg);
    }
}
```

### Progress Bar

```rust
use zfish::ProgressBar;
use std::thread;
use std::time::Duration;

fn main() {
    let mut pb = ProgressBar::new(100);
    
    for i in 0..=100 {
        pb.set(i);
        thread::sleep(Duration::from_millis(50));
    }
    
    pb.finish("โœ“ Complete!");
}
```

### Subcommands (Git-Style CLI)

```rust
use zfish::command::{App, Command, Arg};

fn main() {
    let app = App::new("myapp")
        .version("1.0.0")
        .about("My awesome CLI")
        .arg(Arg::new("verbose").short('v').long("verbose"))
        .subcommand(
            Command::new("init")
                .about("Initialize a new project")
                .arg(Arg::new("name").required(true))
        )
        .subcommand(
            Command::new("build")
                .about("Build the project")
                .arg(Arg::new("release").long("release"))
        );

    let matches = app.get_matches();
    
    match matches.subcommand() {
        Some(("init", sub_matches)) => {
            let name = sub_matches.value_of("name").unwrap();
            println!("Initializing: {}", name);
        }
        Some(("build", sub_matches)) => {
            if sub_matches.is_present("release") {
                println!("Building in release mode");
            }
        }
        _ => println!("Use --help for usage"),
    }
}
```

### Interactive Prompts

```rust
use zfish::Prompt;

fn main() {
    let name = Prompt::text("What's your name?");
    println!("Hello, {}!", name);
    
    if Prompt::confirm("Continue?") {
        println!("Let's go!");
    }
    
    let password = Prompt::password("Enter password:");
    println!("Password length: {}", password.len());
}
```

### 256-Color Palette

```rust
use zfish::Color;

fn main() {
    // Use any color from 0-255
    println!("{}", Color::Custom(196).paint("Bright red"));
    println!("{}", Color::Custom(46).paint("Bright green"));
    println!("{}", Color::Custom(21).paint("Deep blue"));
    
    // Show all 256 colors
    for i in 0..=255 {
        print!("{} ", Color::Custom(i).paint(format!("{:3}", i)));
        if (i + 1) % 16 == 0 {
            println!();
        }
    }
}
```

### Beautiful Tables

```rust
use zfish::table::{Table, BoxStyle, Alignment};
use zfish::Color;

fn main() {
    let mut table = Table::new(vec!["Name", "Language", "Stars"]);
    table.set_box_style(BoxStyle::Rounded);
    table.set_column_alignment(2, Alignment::Right);
    
    table.add_row(vec!["zfish", "Rust", "โญโญโญโญโญ"]);
    table.add_row(vec!["clap", "Rust", "โญโญโญโญ"]);
    table.add_row(vec!["cobra", "Go", "โญโญโญ"]);
    
    table.print();
    // Output:
    // โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
    // โ”‚ Name     โ”‚ Language โ”‚ Stars โ”‚
    // โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
    // โ”‚ zfish    โ”‚ Rust     โ”‚ โญโญโญโญโญ โ”‚
    // โ”‚ clap     โ”‚ Rust     โ”‚ โญโญโญโญ โ”‚
    // โ”‚ cobra    โ”‚ Go       โ”‚ โญโญโญ โ”‚
    // โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
}
```

---

## ๐Ÿ“š Documentation

- **Developer Docs**: [zfish-devdocs.vercel.app]https://zfish-devdocs.vercel.app โ€” Interactive guides and tutorials
- **API Docs**: [docs.rs/zfish]https://docs.rs/zfish โ€” Generated Rust documentation
- **Roadmap**: [ROADMAP.md]./ROADMAP.md โ€” Detailed feature roadmap
- **Public Roadmap**: [Notion Roadmap]https://sprinkle-toque-13b.notion.site/ZFish-29d4eaaebc9d80bd82f3c27833a92232 โ€” Live feature status & timeline
- **Installation Guide**: [PACKAGES.md]./PACKAGES.md โ€” Multiple installation methods
- **Release Process**: [.github/RELEASE_PROCESS.md]./.github/RELEASE_PROCESS.md โ€” How we create releases
- **Examples**: [examples/]./examples/ โ€” 18 comprehensive examples covering all features
  - `01_hello_world.rs` โ€” Basic usage
  - `02_argument_parsing.rs` โ€” CLI argument handling
  - `03_colored_text.rs` โ€” 16 + 256 color palette
  - `04_progress_bar.rs` โ€” 4 progress bar styles
  - `05_logger.rs` โ€” Leveled logging
  - `06_terminal_control.rs` โ€” Terminal manipulation
  - `07_interactive_prompts.rs` โ€” User input
  - `08_complete_cli.rs` โ€” Full-featured CLI app
  - `09_subcommands.rs` โ€” Nested command structures
  - `10_arg_features_v2.rs` โ€” Advanced argument features
  - `11_core_features_demo.rs` โ€” Core functionality showcase
  - `12_beautiful_reports.rs` โ€” Styled report generation
  - `13_table_examples.rs` โ€” **12 automated table examples** with all box styles
  - `14_alignment_test.rs` โ€” Table emoji alignment verification
  - `15_debug_emoji_width.rs` โ€” Unicode width debugging
  - `16_comprehensive_unicode_test.rs` โ€” Full Unicode support test
  - `17_unicode_edge_cases.rs` โ€” Complex emoji sequences
  - `18_manual_table_drawing.rs` โ€” **Manual table fallback** for custom layouts

---

## ๐ŸŽฏ Design Philosophy

### Why zfish?

Most CLI frameworks pull in dozens of dependencies, increasing:
- **Compile times** (minutes instead of seconds)
- **Binary size** (MBs instead of KBs)
- **Supply chain risk** (trust dozens of crates)
- **Maintenance burden** (breaking changes cascade)

zfish takes a different approach:

```text
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Other CLI Frameworks       โ”‚  zfish                 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  50+ dependencies           โ”‚  0 dependencies       โ”‚
โ”‚  ~10 second compile         โ”‚  ~1 second compile    โ”‚
โ”‚  ~2 MB binary               โ”‚  ~200 KB binary       โ”‚
โ”‚  Complex API                โ”‚  Intuitive API        โ”‚
โ”‚  ANSI escape codes manual   โ”‚  Auto color detection โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

### Core Principles

1. **Zero Dependencies** โ€” Only Rust std library
2. **Safety First** โ€” No unsafe code in public API
3. **Performance** โ€” Optimized for speed and size
4. **Simplicity** โ€” Easy to learn, hard to misuse
5. **Cross-Platform** โ€” Works everywhere Rust works

---

## ๐Ÿš€ Project Status

**Current Version**: `0.1.10` (Active Development)

> ๐Ÿ“‹ **For detailed feature status, implementation notes, and roadmap, visit our [Notion Roadmap โ†’]https://sprinkle-toque-13b.notion.site/ZFish-29d4eaaebc9d80bd82f3c27833a92232**

See [ROADMAP.md](./ROADMAP.md) for version plans.

## ๐Ÿ“Š Feature Matrix

| Feature Category | Feature | Status | Module | Notes |
|-----------------|---------|--------|--------|-------|
| **Colors & Styling** | 16 ANSI Colors | โœ… | `style` | Black, Red, Green, Yellow, Blue, Magenta, Cyan, White + Bright variants |
| | 256-Color Palette | โœ… | `style` | `Color::Custom(0-255)` |
| | Text Styles | โœ… | `style` | Bold, Italic, Underline, Dim, Blink, Reverse, Hidden, Strikethrough |
| | Chained Styling | โœ… | `style` | `.style(Style::Bold).style(Style::Italic)` |
| **Argument Parsing** | Flags & Options | โœ… | `args` | `--flag`, `-f`, `--option value` |
| | Positional Args | โœ… | `args` | Automatic capture of non-flag arguments |
| | Short Flag Combos | โœ… | `args` | `-abc` โ†’ `-a -b -c` |
| **Commands & Subcommands** | Subcommand System | โœ… | `command` | Git-style nested commands |
| | Auto-generated Help | โœ… | `command` | `--help` for all commands |
| | Argument Validation | โœ… | `command` | Required args, possible values, custom validators |
| | Environment Fallbacks | โœ… | `command` | `.env("VAR_NAME")` for options |
| | Value Delimiters | โœ… | `command` | `--tags rust,cli,tool` |
| | Argument Dependencies | โœ… | `command` | `.requires("other_arg")` |
| | Conflict Detection | โœ… | `command` | `.conflicts_with("other_arg")` |
| | Variadic Arguments | โœ… | `command` | `[FILES]...` capture multiple values |
| | Command Aliases | โœ… | `command` | Multiple names for same command |
| **Progress Bars** | Bar Style | โœ… | `progress` | Classic progress bar |
| | Spinner Style | โœ… | `progress` | Rotating spinner |
| | Dots Style | โœ… | `progress` | Animated dots |
| | Arrow Style | โœ… | `progress` | Moving arrows |
| | Custom Width | โœ… | `progress` | `.width(50)` |
| **Interactive Prompts** | Text Input | โœ… | `prompt` | `Prompt::text("Question?")` |
| | Password Input | โœ… | `prompt` | Hidden input for sensitive data |
| | Confirmation | โœ… | `prompt` | Yes/No prompts |
| | Multi-select | ๐Ÿ”จ | - | Coming in v0.3.0 |
| **Tables** | 5 Box Styles | โœ… | `table` | Single, Double, Heavy, Rounded, ASCII |
| | Column Alignment | โœ… | `table` | Left, Right, Center per column |
| | Unicode-Aware Width | โœ… | `table` | Handles emojis, CJK, combining marks |
| | Header/Footer Separators | โœ… | `table` | Toggle separators on/off |
| | Manual Drawing | โœ… | `table` | `draw_box()`, `draw_separator()` for custom layouts |
| | Custom Indentation | โœ… | `table` | `.set_indent(n)` |
| **Logging** | 5 Log Levels | โœ… | `log` | Error, Warn, Info, Debug, Trace |
| | Timestamp Support | โœ… | `log` | Optional timestamps |
| | Level Filtering | โœ… | `log` | `.level(Level::Debug)` |
| **Terminal Control** | Clear Screen | โœ… | `term` | `Terminal::clear_screen()` |
| | Cursor Movement | โœ… | `term` | `Terminal::move_cursor(row, col)` |
| | Terminal Size | โœ… | `term` | `Terminal::size()` (cross-platform) |
| | Print at Position | โœ… | `term` | `Terminal::print_at(row, col, text)` |
| **Platform Support** | Linux | โœ… | `os` | Tier 1 support |
| | macOS | โœ… | `os` | Tier 1 support |
| | Windows | โœ… | `os` | Tier 1 support (cmd.exe, PowerShell) |
| | BSD | ๐ŸŸก | `os` | Should work, not officially tested |
| **Development** | Zero Dependencies | โœ… | - | Only uses Rust `std` library |
| | No Unsafe Code | โœ… | - | `#![forbid(unsafe_code)]` in public API |
| | Edition 2024 | โœ… | - | Uses latest Rust features |
| | Feature Flags | โœ… | - | `colour`, `raw`, `progress`, `interactive` |

**Legend**: โœ… Implemented | ๐Ÿ”จ In Progress | ๐ŸŸก Partial/Untested | โŒ Not Available

### Completed Features (v0.1.x - v0.2.x)

#### Core Styling & Colors
- โœ… 16 standard ANSI colors
- โœ… 256-color palette (0-255)
- โœ… Text styling (bold, italic, underline, dim, blink, reverse, hidden, strikethrough)

#### Argument Parsing & Commands
- โœ… Basic argument parser (flags, options, positional args)
- โœ… **Subcommand system** (git-style, multi-level hierarchies)
- โœ… **Auto-generated `--help`** text for all commands
- โœ… **Argument validation** (required args, possible values, custom validators)
- โœ… **Advanced arg features** (environment variable fallbacks, delimiters, dependencies, conflicts)
- โœ… **Variadic arguments** (capture multiple values)

#### Progress & Interactive
- โœ… 4 progress bar styles (bar, spinner, dots, arrows)
- โœ… Interactive prompts (text, confirm, password)

#### Terminal Control
- โœ… Terminal control (clear screen, cursor movement)
- โœ… Terminal size detection (Windows + Unix)

#### Logging & Tables
- โœ… Leveled logging (error, warn, info, debug, trace)
- โœ… **Table module** with 5 box styles (Single, Double, Heavy, Rounded, ASCII)
- โœ… **Unicode-aware** width calculation (emojis, CJK, combining marks)
- โœ… **Manual table drawing** fallback for custom layouts
- โœ… **Column alignment** (Left, Right, Center)

#### Development & Examples
- โœ… Feature flags (colour, raw, progress, interactive)
- โœ… Edition 2024 support
- โœ… 18 comprehensive examples

### Coming Next (v0.3.0+)
- ๐Ÿ”จ Multi-select prompts (checkbox lists)
- ๐Ÿ”จ Fuzzing tests for argument parser
- ๐Ÿ”จ Shell completion generation (bash, zsh, fish)
- ๐Ÿ”จ Configuration file support (TOML, JSON)
- ๐Ÿ”จ Spinner widgets with custom animations

> ๐Ÿ’ก **Want more details?** Check our **[Interactive Roadmap on Notion]https://sprinkle-toque-13b.notion.site/ZFish-29d4eaaebc9d80bd82f3c27833a92232** for:
> - Detailed implementation notes for each feature
> - Release timelines and version planning
> - Known issues and workarounds
> - Feature request voting and discussions

---

## ๐Ÿ”ง Feature Flags

zfish uses Cargo feature flags for optional functionality:

```toml
[dependencies.zfish]
version = "0.1"
default-features = false  # Disable all defaults
features = ["colour"]     # Enable only what you need
```

| Flag | Default | Description | Status |
|------|---------|-------------|--------|
| `colour` | โœ… | ANSI color support (16 + 256 colors) | โœ… Available |
| `raw` | โŒ | Raw terminal mode for advanced I/O | โœ… Available |
| `progress` | โŒ | Progress bars (4 styles: bar, spinner, dots, arrows) | โœ… Available |
| `interactive` | โŒ | Interactive prompts (text, password, confirm) | โœ… Available |

**Note**: `progress` and `interactive` features require `raw` mode and are automatically enabled when you use them.

---

## ๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

1. **Report Bugs** โ€” Open an issue with details
2. **Request Features** โ€” Discuss in GitHub Discussions
3. **Submit PRs** โ€” Check open issues labeled "good first issue"
4. **Improve Docs** โ€” Fix typos, add examples

### Documentation

- **[API Documentation]https://docs.rs/zfish** โ€” Complete API reference on docs.rs
- **[Developer Docs]https://zfish-devdocs.vercel.app** โ€” Interactive guides, examples, and tutorials
- **[Roadmap]https://sprinkle-toque-13b.notion.site/ZFish-29d4eaaebc9d80bd82f3c27833a92232** โ€” Feature status and upcoming releases

### Development Setup

```bash
# Clone the repository
git clone https://github.com/JeetKarena/ZFish.git
cd zfish

# Run tests
cargo test

# Run tests (single-threaded to avoid env var conflicts)
cargo test -- --test-threads=1

# Build documentation
cargo doc --open

# Run examples
cargo run --example 01_hello_world
cargo run --example 02_argument_parsing
cargo run --example 03_colored_text
cargo run --example 04_progress_bar
cargo run --example 05_logger
cargo run --example 06_terminal_control
cargo run --example 07_interactive_prompts
cargo run --example 08_complete_cli
```

---

## ๐Ÿ“Š Performance

zfish is designed for speed:

| Operation | Time (Ryzen 3600) |
|-----------|-------------------|
| Cold start | ~3ms |
| Parse 1M flags | ~180ms |
| Render progress bar | 60 FPS |
| Color detection | <1ยตs (cached) |

Benchmarks run on:
- CPU: AMD Ryzen 5 3600
- RAM: 16GB DDR4-3200
- OS: Windows 11 / Ubuntu 22.04

---

## ๐ŸŒ Platform Support

| Platform | Status | Notes |
|----------|--------|-------|
| Linux | โœ… Tier 1 | Tested on Ubuntu 20.04+ |
| macOS | โœ… Tier 1 | Tested on macOS 12+ |
| Windows | โœ… Tier 1 | Tested on Windows 10/11 |
| BSD | ๐ŸŸก Should work | Not officially tested |
| WASM | โŒ Not supported | Terminal I/O not available |

---

## ๐Ÿ“œ License

Licensed under the **MIT License**.

See [LICENSE](LICENSE) for details or visit http://opensource.org/licenses/MIT.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in zfish shall be licensed under the MIT License, without any additional terms or conditions.

---

## ๐Ÿ™ Acknowledgments

Inspired by:
- **clap** โ€” Excellent API design patterns
- **colored** โ€” Color API inspiration
- **indicatif** โ€” Progress bar concepts
- **dialoguer** โ€” Interactive prompt ideas

Built with zero dependencies as a proof-of-concept that powerful CLIs don't need to pull in half of crates.io.

---

## ๐Ÿ’ฌ Community

- **GitHub Discussions** โ€” Ask questions, share ideas
- **Issues** โ€” Report bugs, request features
- **Twitter** โ€” Follow [@user_0xJeet]https://x.com/user_0xJeet for updates

---

## ๐Ÿ“ˆ Stargazers over time

[![Stargazers over time](https://starchart.cc/JeetKarena/ZFish.svg)](https://starchart.cc/JeetKarena/ZFish)

---

<div align="center">

**Created with โค๏ธ by Jeet Karena**

```text
โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘  zfish v0.1.10                                                โ•‘
โ•‘  Copyright ยฉ 2025 Jeet Karena                                 โ•‘
โ•‘  Licensed under MIT License                                   โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
```

[โฌ† Back to Top](#-zfish--ultra-light-cli-framework-for-rust)

</div>