Files
leleka/crates/deploy/src/lib.rs
T
Pavlo RatushnyiandClaude Sonnet 5.5 e2e8b78abf leleka-deploy: one env_settings reader, no dyn, supervisor and flows read time through the Clock port, explicit imports
glob-super-import 15 -> 0, env-read 41 -> 0 outside crates/deploy/src/env_settings.rs (typed accessors: home, PATH, tokens presence, route, distro; the LELEKA_* lookup is a fn pointer EnvLookup), dyn-trait 17 -> 0 (impl Fn / impl FnMut), instant-now 28 -> 0 (ServiceSupervisor holds an AnyClock, command flows use SystemClock of leleka-obs). Doc headers of the generated files are real sentences.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 19:40:18 +01:00

34 lines
900 B
Rust

//! `leleka`: deploy and run the Leleka runtime (engine + gateway + API) with one command.
//!
//! No Python, no shell glue at run time: `leleka up` preflights the host, fetches and verifies the model, builds the
//! KAR archive, installs the binaries, writes the configuration, starts the service and waits for readiness;
//! `leleka run` is the supervisor that the systemd unit (or a terminal) executes. See `docs/deploy.md`.
pub mod app;
pub mod cli;
pub mod config;
pub mod doctor;
pub mod env_settings;
pub mod expert_profile;
pub mod facts;
pub mod http;
pub mod layout;
pub mod logs;
pub mod logview;
pub mod manifest;
pub mod plan;
pub mod preflight;
pub mod profile;
pub mod reconfigure;
pub mod resources;
pub mod sealed;
pub mod service;
pub mod steps;
pub mod supervisor;
pub mod units;
pub mod watchdog;
pub mod winfront;
pub mod winservice;
#[cfg(windows)]
pub mod winsys;
pub mod wsl;