pub type EnabledFn = Rc<dyn Fn(&App) -> Result<(), String>>;
Whether a command can run now; Err says why not (shown greyed in menus and search).
Err
pub struct EnabledFn { /* private fields */ }