haz_cli/commands.rs
1//! `haz` subcommand implementations.
2//!
3//! Each submodule wires a single parsed [`crate::cli::Cmd`] variant
4//! to the libraries that perform the work. The submodules return a
5//! [`miette::Result<i32>`] (the process exit code on success, a
6//! rendered diagnostic on failure); the binary entry point applies
7//! the returned code via [`std::process::exit`].
8
9pub mod cache;
10pub mod check;
11pub mod init;
12pub mod query;
13pub mod run;
14pub mod why;