Type Alias seahorse::Action

source ·
pub type Action = fn(_: &Context);
Expand description

Command and application action type

Example

use seahorse::{Action, Context};

let action: Action = |c: &Context| {
    println!("{:?}", c.args);
};