Skip to main content

Module commands

Module commands 

Source
Expand description

Subcommand handlers.

Every subcommand lives in a single file under src/commands/ and exposes two items: an Args struct (deriving clap::Args) that defines the per-subcommand CLI surface, and a run(args: &Args) function that returns Result<(), crate::error::CliError>. The top-level dispatch in main.rs is an exhaustive match on the cli::Command enum, so adding a new subcommand requires touching exactly this file, src/cli.rs, and a new commands/<name>.rs.

Modulesยง

init
omne init <distro> โ€” scaffold a new omne volume.
upgrade
omne upgrade [kernel|distro] โ€” replace kernel or distro with latest release.
validate
omne validate โ€” check volume integrity and run the distro gate runner.