1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
use tw;
use ::Queryer;
pub struct Command {
pub keyword: &'static str,
pub params: u8,
pub exec: fn(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer)
}
mod show_cache;
mod twete;
mod look_up;
mod view;
mod quit;
mod fav;
pub static COMMANDS: &[&Command] = &[
&show_cache::SHOW_CACHE,
&quit::QUIT,
&look_up::LOOK_UP_USER,
&look_up::LOOK_UP_TWEET,
&view::VIEW,
&view::VIEW_THREAD,
&fav::UNFAV,
&fav::FAV,
&twete::DEL,
&twete::TWETE,
&twete::QUOTE,
&twete::RETWETE,
&twete::REP,
&twete::THREAD
/*
&QUIT,
&LOOK_UP_USER,
&LOOK_UP_TWEET,
&VIEW,
&UNFAV,
&FAV,
&DEL,
&TWETE,
"E,
&RETWETE,
&REP,
&THREAD
];
*/
];
|