@untold cave
I'm not quite sure on how to get to the attributes.
https://github.com/thebluefish/bevy_commandify/blob/main/src/lib.rs#L24
here you seem to originally get your args, which you then parse.
and give it to commandify
in here you get the attributes: https://github.com/thebluefish/bevy_commandify/blob/bec89d64f4d8ad049e527d896c94e399e4c99642/src/gen.rs#L16
which you then give to the docs function.
but i don't really understand the first part.
how i've done it so far is:
#[proc_macro_derive(QevyEntity, attributes(qevy_entity))]
pub fn qevy_entity_derive_macro(
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
entities::qevy_entity_derive_macro2(item.into())
.unwrap()
.into()
}
this is my derive macro, and i only get the tokenstream.
i'm unsure on how to get the attributes for docs, as &[Attribute] type.