Files
mytheclipse/crates/mytheclipse-cli/README.md
T
asepharyana 8106f8943e feat: add 4 new crates (queue, tracing, http, cli) + enhancements to existing crates
New crates:
- mytheclipse-queue: unified job queue with WorkerPool, retry/backoff, DLQ
  Backends: in-memory (default), Redis, NATS, PostgreSQL
- mytheclipse-tracing: tracing subscriber layers with env filter + OTLP/Jaeger export
- mytheclipse-http: HTTP client/server with timeout + tracing, axum server
- mytheclipse-cli: CLI framework with clap derive, built-in subcommands

Enhancements to existing crates:
- mytheclipse-core: SemaphorePool, LeaderElection, HealthRegistry/HealthCheck
- mytheclipse-cache: AutoRefreshCache (bg refresh on miss), CacheMetrics
- mytheclipse-config: ConfigSchema for JSON Schema generation
- mytheclipse-storage: MultipartUploadDriver trait
- mytheclipse-crypto: PASETO v4.local token support

All features compile with --all-features; tests + clippy pass clean.
2026-08-29 16:05:02 +07:00

706 B

mytheclipse-cli

CLI framework for mytheclipse applications with built-in subcommands: serve, worker, migrate, health, and version.

Features

Feature Default Description
clap-derive yes Clap derive macros for argument parsing.

Usage

[dependencies]
mytheclipse-cli = "0.2"
use mytheclipse_cli::CliApp;

fn main() {
    let app = CliApp::parse();
    match app.command {
        Subcommand::Serve => { /* ... */ }
        Subcommand::Worker { topics } => { /* ... */ }
        Subcommand::Migrate => { /* ... */ }
        Subcommand::Health => { /* ... */ }
        Subcommand::Version => { println!("1.0.0"); }
    }
}