MCPcopy Create free account
hub / github.com/Notgnoshi/generative / main

Function main

tools/template.rs:25–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25fn main() -> eyre::Result<()> {
26 color_eyre::install()?;
27 let args = CmdlineOptions::parse();
28
29 let filter = tracing_subscriber::EnvFilter::builder()
30 .with_default_directive(args.log_level.into())
31 .from_env_lossy();
32 tracing_subscriber::fmt()
33 .with_env_filter(filter)
34 .with_ansi(true)
35 .with_writer(std::io::stderr)
36 .init();
37
38 let reader = get_input_reader(&args.input)?;
39 let geometries = read_geometries(reader); // lazily loaded
40
41 // Do some kind of transformation to the geometries here.
42
43 let writer = get_output_writer(&args.output)?;
44 write_geometries(writer, geometries)
45}

Callers

nothing calls this directly

Calls 4

get_input_readerFunction · 0.85
read_geometriesFunction · 0.85
get_output_writerFunction · 0.85
write_geometriesFunction · 0.85

Tested by

no test coverage detected