zinit_client
CLI client for the Zinit process supervisor with Rhai scripting support.
Overview
zinit_client provides a command-line interface, interactive REPL, and TUI for managing services through the Zinit server. It includes a Rhai scripting engine for automation.
Features
- CLI commands for service management
- Interactive REPL with syntax highlighting and tab completion
- Full-screen TUI for service monitoring
- Rhai scripting for automation
- Service builder API for programmatic service creation
Installation
Usage
CLI Commands
# Service management
# Interactive modes
# Scripting
Rhai Scripting
// Create and start a service
let svc = new_service("my-app")
.exec("/usr/bin/my-app --port 8080")
.after("database")
.env("LOG_LEVEL", "info");
start(svc, 5); // Start and wait up to 5 seconds
// Check status
let status = zinit_status("my-app");
print("State: " + status.state);
to run rhai script
To get openrpc spec
| |