{"repo":"xcaeser/zli","free":true,"listed":false,"github":"https://github.com/xcaeser/zli","clone":"git clone https://github.com/xcaeser/zli.git","description":"📟 Build ergonomic, high-performance command-line tools (CLI) with zig.","language":"Zig","stars":332,"topics":["cli","zig","zig-package"],"license":"MIT","category":"cli-tools","readme_excerpt":"📟 zli - a blazing-fast CLI framework for Zig. Build modular, ergonomic, and high-performance CLIs with ease. Batteries included. ZLI reference docs 🚀 Features - Modular commands & subcommands - Fast flag parsing ( --flag , --flag=value , shorthand -abc ) - Type-safe support for bool , int , string - Named positional arguments with required , optional , variadic - Auto help/version/deprecation handling - Pretty help output with aligned flags & args - Spinners for a more interactive experience - Usage hints, context-aware 📦 Installation Add to your build.zig : 🌱 Single-file Quick Start Start with one src/main.zig : initialize the root command, add a flag, add a subcommand, then run it. Run it: Use runAndExit for normal CLI binaries: it prints errors/help and exits with the right process code. Use execute when you want library-friendly behavior for tests, embedding, or custom error handling; it returns errors instead of exiting the process. 🗂 Folder Structure (but you can do what you want) - Each command is in its own file - You explicitly register subcommands - root.zig is the entry point 🧪 Example Your program Root command - entrypoint Run subcommand Version subcommand Spinners example Available functions: - spinner.start : to add a new line. sets the spinner to running - spinner.updateStyle : to update the spinner style - spinner.updateMessage : to update text of a running spinner - spinner.succeed , fail , info , preserve : mandatory to complete a line you started. eac","default_branch":null,"files":null,"tree":[],"storefront":"/r/xcaeser","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xcaeser/zli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}