interactive-clap-derive 0.3.2

Interactive mode extension crate to Command Line Arguments Parser (https://crates.io/crates/clap) (derive macros helper crate)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod snake_case_to_camel_case;
pub mod to_kebab_case;

pub fn type_starts_with_vec(ty: &syn::Type) -> bool {
    if let syn::Type::Path(type_path) = ty {
        if let Some(path_segment) = type_path.path.segments.first() {
            if path_segment.ident == "Vec" {
                return true;
            }
        }
    }
    false
}