forked from
stavola.xyz/mlf
A human-friendly DSL for ATProto Lexicons
1use mlf_codegen::plugin;
2
3fn main() {
4 println!("Testing MLF Plugin System\n");
5
6 // List all registered generators
7 println!("Registered generators:");
8 for generator in plugin::generators() {
9 println!(" - {} ({}): {}",
10 generator.name(),
11 generator.file_extension(),
12 generator.description()
13 );
14 }
15
16 // Try to find the JSON generator
17 println!("\nLooking for 'json' generator...");
18 if let Some(generator) = plugin::find_generator("json") {
19 println!("Found: {} - {}", generator.name(), generator.description());
20 } else {
21 println!("Not found!");
22 }
23}