Skip to main content

Module cli

Module cli 

Source

Structs§

CliConfig
Configuration for the CLI helper

Functions§

json_from_str_lossy
Parse JSON with lossy number handling: numbers that overflow i64/u64 are stored as f64.
run_generation_cli
Run the complete generation CLI with the provided configuration
yaml_to_json_value
Parse YAML to serde_json::Value, converting large numbers to f64 to avoid overflow. serde_yaml 0.9 cannot represent integers exceeding i64/u64 range (e.g. numbers > 2^64), so we preprocess the YAML to convert such numbers to float notation, then go through serde_yaml::Value and convert to serde_json::Value manually.