1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use composure::app; /// A command #[composure::command] fn ping() -> &'static str { "pong" } #[app(handlers(ping), colors = 1)] struct Unknown; #[app(handlers(ping), handlers(ping))] struct Twice; #[app(handlers(ping))] struct Fields(u32); fn main() {}