Expand description
CLI ergonomics for id_effect::Effect programs: exit code mapping, optional clap
integration, and a small run_main helper.
Design matches Phase E — CLI ergonomics:
embrace clap for parsing, run the effect with id_effect::runtime::run_blocking, map
Result / id_effect::Exit / id_effect::Cause to
std::process::ExitCode for fn main() -> ExitCode.
Modules§
- generator
- Stub project generator for
id-effect new.
Structs§
- RunMain
Config - Options for
run_main.
Functions§
- cause_
max_ exit_ byte - Numeric byte used inside
ExitCodefor aCausetree (deepest / worst wins for composites). - exit_
code_ for_ cause ExitCodefrom a structuredCause.- exit_
code_ for_ exit ExitCodefor a finishedExitvalue.- exit_
code_ for_ result - Map a synchronous
Resultfromid_effect::runtime::run_blockingto anExitCode. - run_
main - Run
effectwithenv, optionally install tracing, logErrto stderr, returnExitCode.