aboutsummaryrefslogtreecommitdiff
path: root/src/commands/help.rs
blob: 825447b36233113039e7cfee9c697af14209dcac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use tw;
use ::Queryer;

use tw::TweetId;

use commands::Command;

pub static HELP: Command = Command {
    keyword: "help",
    params: 0,
    exec: help,
    help_str: "This help prompt."
};

fn help(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
    tweeter.state = tw::AppState::ShowHelp;
}