fzf-make 0.75.0

A command line tool that executes commands using fuzzy finder with preview window for make, pnpm, yarn, just, and task.
1
2
3
4
5
6
7
8
9
10
// ref: https://qiita.com/kgtkr/items/a17827c4bb704f39c854
pub fn any_to_string(any: &dyn std::any::Any) -> String {
    if let Some(s) = any.downcast_ref::<String>() {
        s.clone()
    } else if let Some(s) = any.downcast_ref::<&str>() {
        s.to_string()
    } else {
        "Any".to_string()
    }
}