Skip to main content

Crate elm_client_gen_cli

Crate elm_client_gen_cli 

Source
Expand description

Core of the reference CLI, extracted from main.rs so integration tests can drive it with fixture types instead of having to link a separate binary that carries them.

main.rs collects types from registered_types() and calls run_codegen; tests construct their own &[ElmTypeInfo] and call it directly with a tempdir as output.

Structs§

CodegenOptions
Everything the CLI’s request-handling layer needs to know.

Enums§

CodegenOutcome
Outcome of a codegen run.

Functions§

run_codegen
Run codegen over an explicit list of types. Callers that want the default “all registered types” behavior should pass registered_types() themselves.