| 1 | # Cyclopts Demo |
| 2 | |
| 3 | Demo CLI application for testing and demonstrating Cyclopts features. |
| 4 | |
| 5 | ## Purpose |
| 6 | |
| 7 | This app is designed for: |
| 8 | |
| 9 | - Manual testing of shell completion |
| 10 | - Testing edge cases that are hard to unit test |
| 11 | - Demonstrating Cyclopts features in documentation |
| 12 | - Serving as a reference implementation |
| 13 | |
| 14 | ## Quick Start |
| 15 | |
| 16 | ### Run the CLI |
| 17 | |
| 18 | ```bash |
| 19 | cd tests/apps/cyclopts-demo |
| 20 | |
| 21 | # Show help |
| 22 | python cyclopts_demo.py --help |
| 23 | |
| 24 | # Try commands |
| 25 | python cyclopts_demo.py files ls --help |
| 26 | python cyclopts_demo.py database migrate --help |
| 27 | ``` |
| 28 | |
| 29 | ### Build and View MkDocs Documentation |
| 30 | |
| 31 | ```bash |
| 32 | # Build the documentation |
| 33 | uv run mkdocs build |
| 34 | |
| 35 | # Serve the documentation locally |
| 36 | uv run mkdocs serve |
| 37 | # Opens http://127.0.0.1:8000 |
| 38 | ``` |