@@ -3,7 +3,7 @@ Class library that can help in writing command line based applications with mini
33
44<p align =" center " >
55 <a target =" _blank " href =" https://github.com/WebFiori/cli/actions/workflows/php84.yaml " >
6- <img src="https://github.com/WebFiori/cli/actions/workflows/php83 .yaml/badge.svg?branch=main">
6+ <img src="https://github.com/WebFiori/cli/actions/workflows/php84 .yaml/badge.svg?branch=main">
77 </a >
88 <a href =" https://codecov.io/gh/WebFiori/cli " >
99 <img src="https://codecov.io/gh/WebFiori/cli/branch/main/graph/badge.svg" />
@@ -104,13 +104,13 @@ exit(\$runner->start());
104104A complete sample application with multiple examples can be found here: ** [ 📁 View Sample Application] ( https://github.com/WebFiori/cli/tree/main/examples ) **
105105
106106The sample application includes:
107- - ** [ Basic Commands] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-command ) ** - Simple command creation
108- - ** [ Arguments Handling] ( https://github.com/WebFiori/cli/tree/main/examples/02-command-with-args ) ** - Working with command arguments
109- - ** [ Interactive Mode ] ( https://github.com/WebFiori/cli/tree/main/examples/03-interactive-mode ) ** - Building interactive applications
107+ - ** [ Basic Commands] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-hello-world ) ** - Simple command creation
108+ - ** [ Arguments Handling] ( https://github.com/WebFiori/cli/tree/main/examples/02-arguments-and-options ) ** - Working with command arguments
109+ - ** [ User Input ] ( https://github.com/WebFiori/cli/tree/main/examples/03-user-input ) ** - Building interactive applications
110110- ** [ Multi-Command Apps] ( https://github.com/WebFiori/cli/tree/main/examples/10-multi-command-app ) ** - Complex applications with multiple commands
111- - ** [ Progress Bars] ( https://github.com/WebFiori/cli/tree/main/examples/05 -progress-bars ) ** - Visual progress indicators
111+ - ** [ Progress Bars] ( https://github.com/WebFiori/cli/tree/main/examples/07 -progress-bars ) ** - Visual progress indicators
112112- ** [ Table Display] ( https://github.com/WebFiori/cli/tree/main/examples/06-table-display ) ** - Formatting data in tables
113- - ** [ Testing Examples ] ( https://github.com/WebFiori/cli/tree/main/examples/tests ) ** - Unit testing your commands
113+ - ** [ Database Operations ] ( https://github.com/WebFiori/cli/tree/main/examples/09-database-ops ) ** - Database CLI commands
114114
115115## Installation
116116
@@ -165,7 +165,7 @@ php app.php greet
165165# Output: Hello from WebFiori CLI!
166166```
167167
168- ** [ 📖 View Complete Example] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-command ) **
168+ ** [ 📖 View Complete Example] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-hello-world ) **
169169
170170### Command with Arguments
171171
@@ -210,7 +210,7 @@ php app.php greet-person --name=Sarah
210210# Output: Hello Friend Sarah!
211211```
212212
213- ** [ 📖 View Complete Example] ( https://github.com/WebFiori/cli/tree/main/examples/02-command-with-args ) **
213+ ** [ 📖 View Complete Example] ( https://github.com/WebFiori/cli/tree/main/examples/02-arguments-and-options ) **
214214
215215### Multi-Command Application
216216
@@ -394,7 +394,7 @@ This will show following output in terminal:
394394>>
395395```
396396
397- ** [ 📖 View Interactive Mode Example] ( https://github.com/WebFiori/cli/tree/main/examples/03 -interactive-mode ) **
397+ ** [ 📖 View Interactive Mode Example] ( https://github.com/WebFiori/cli/tree/main/examples/05 -interactive-commands ) **
398398
399399### Input and Output Streams
400400
@@ -411,7 +411,7 @@ $command->setInputStream(new FileInputStream('input.txt'));
411411$command->setOutputStream(new FileOutputStream('output.txt'));
412412```
413413
414- ** [ 📖 View Streams Example] ( https://github.com/WebFiori/cli/tree/main/examples/04-custom-streams ) **
414+ ** [ 📖 View Streams Example] ( https://github.com/WebFiori/cli/tree/main/examples/08-file-processing ) **
415415
416416### ANSI Colors and Formatting
417417
@@ -427,7 +427,7 @@ public function exec(): int {
427427}
428428```
429429
430- ** [ 📖 View Formatting Example] ( https://github.com/WebFiori/cli/tree/main/examples/07-ansi -formatting ) **
430+ ** [ 📖 View Formatting Example] ( https://github.com/WebFiori/cli/tree/main/examples/04-output -formatting ) **
431431
432432### Progress Bars
433433
@@ -449,7 +449,7 @@ public function exec(): int {
449449}
450450```
451451
452- ** [ 📖 View Progress Bar Example] ( https://github.com/WebFiori/cli/tree/main/examples/05 -progress-bars ) **
452+ ** [ 📖 View Progress Bar Example] ( https://github.com/WebFiori/cli/tree/main/examples/07 -progress-bars ) **
453453
454454### Table Display
455455
@@ -458,8 +458,8 @@ Display data in formatted tables:
458458``` php
459459public function exec(): int {
460460 $data = [
461- ['John Doe ', 30, 'New York '],
462- ['Jane Smith ', 25, 'Los Angeles']
461+ ['Ahmed Hassan ', 30, 'Cairo '],
462+ ['Sarah Johnson ', 25, 'Los Angeles']
463463 ];
464464 $headers = ['Name', 'Age', 'City'];
465465
@@ -593,34 +593,33 @@ class HelloCommandTest extends CommandTestCase {
593593
594594```
595595
596- ** [ 📖 View Testing Examples] ( https://github.com/WebFiori/cli/tree/main/examples/tests ) **
596+ ** [ 📖 View Testing Examples] ( https://github.com/WebFiori/cli/tree/main/examples/10-multi-command-app ) **
597597
598598## Examples
599599
600600Explore comprehensive examples to learn different aspects of WebFiori CLI:
601601
602602### Basic Examples
603- - ** [ 📁 Basic Command] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-command ) ** - Create your first CLI command
604- - ** [ 📁 Command with Arguments] ( https://github.com/WebFiori/cli/tree/main/examples/02-command-with-args ) ** - Handle command-line arguments
605- - ** [ 📁 Interactive Mode] ( https://github.com/WebFiori/cli/tree/main/examples/03-interactive-mode ) ** - Build interactive CLI applications
603+ - ** [ 📁 Basic Command] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-hello-world ) ** - Create your first CLI command
604+ - ** [ 📁 Command with Arguments] ( https://github.com/WebFiori/cli/tree/main/examples/02-arguments-and-options ) ** - Handle command-line arguments
605+ - ** [ 📁 User Input] ( https://github.com/WebFiori/cli/tree/main/examples/03-user-input ) ** - Read and validate user input
606+ - ** [ 📁 Output Formatting] ( https://github.com/WebFiori/cli/tree/main/examples/04-output-formatting ) ** - Colors and text formatting
606607
607608### Advanced Examples
608- - ** [ 📁 Custom Streams] ( https://github.com/WebFiori/cli/tree/main/examples/04-custom-streams ) ** - Custom input/output handling
609- - ** [ 📁 Progress Bars] ( https://github.com/WebFiori/cli/tree/main/examples/05-progress-bars ) ** - Visual progress indicators
609+ - ** [ 📁 Interactive Commands] ( https://github.com/WebFiori/cli/tree/main/examples/05-interactive-commands ) ** - Build interactive CLI applications
610610- ** [ 📁 Table Display] ( https://github.com/WebFiori/cli/tree/main/examples/06-table-display ) ** - Format data in tables
611- - ** [ 📁 ANSI Formatting ] ( https://github.com/WebFiori/cli/tree/main/examples/07-ansi-formatting ) ** - Colors and text formatting
611+ - ** [ 📁 Progress Bars ] ( https://github.com/WebFiori/cli/tree/main/examples/07-progress-bars ) ** - Visual progress indicators
612612- ** [ 📁 File Processing] ( https://github.com/WebFiori/cli/tree/main/examples/08-file-processing ) ** - File manipulation commands
613613- ** [ 📁 Database Operations] ( https://github.com/WebFiori/cli/tree/main/examples/09-database-ops ) ** - Database CLI commands
614614
615615### Complete Applications
616616- ** [ 📁 Multi-Command Application] ( https://github.com/WebFiori/cli/tree/main/examples/10-multi-command-app ) ** - Full-featured CLI application
617- - ** [ 📁 Testing Suite] ( https://github.com/WebFiori/cli/tree/main/examples/tests ) ** - Unit testing examples
618617
619618### Quick Links
620619- ** [ 📖 All Examples] ( https://github.com/WebFiori/cli/tree/main/examples ) ** - Browse all available examples
621- - ** [ 🧪 Test Examples ] ( https://github.com/WebFiori/cli/tree/main/examples/tests/HelloCommandTest .php ) ** - See how to test your commands
622- - ** [ 🚀 Sample App ] ( https://github.com/WebFiori/cli/tree/main/examples/10-multi-command-app/app.php ) ** - Ready-to-run sample application
620+ - ** [ 🚀 Sample App ] ( https://github.com/WebFiori/cli/tree/main/examples/10-multi-command-app/main .php ) ** - Ready-to-run sample application
621+
623622
624623---
625624
626- ** Ready to build amazing CLI applications? Start with the [ 📁 Basic Command Example] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-command ) and work your way up!**
625+ ** Ready to build amazing CLI applications? Start with the [ 📁 Basic Command Example] ( https://github.com/WebFiori/cli/tree/main/examples/01-basic-hello-world ) and work your way up!**
0 commit comments