From 73dc5dda6b8ca8a8bdae0f620442e359871b0152 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Sat, 11 Nov 2017 04:35:35 -0800 Subject: start adding help reference --- src/commands/twete.rs | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/commands/twete.rs') diff --git a/src/commands/twete.rs b/src/commands/twete.rs index 239e039..ff75fea 100644 --- a/src/commands/twete.rs +++ b/src/commands/twete.rs @@ -12,7 +12,8 @@ static CREATE_TWEET_URL: &str = "https://api.twitter.com/1.1/statuses/update.jso pub static DEL: Command = Command { keyword: "del", params: 1, - exec: del + exec: del, + help_str: ": Delete tweet " }; fn del(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -41,7 +42,8 @@ fn del(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { pub static TWETE: Command = Command { keyword: "t", params: 0, - exec: twete + exec: twete, + help_str: "Enter tweet compose mode." }; fn twete(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -76,7 +78,9 @@ pub fn send_twete(text: String, tweeter: &mut tw::TwitterCache, queryer: &mut Qu pub static THREAD: Command = Command { keyword: "thread", params: 2, - exec: thread + exec: thread, + // TODO: make it actually do this.. + help_str: "Enter compose mode, appending to a thread" }; // the difference between threading and replying is not including @@ -117,7 +121,9 @@ fn thread(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { pub static REP: Command = Command { keyword: "rep", params: 1, - exec: rep + exec: rep, + // TODO: doc immediate reply mode + help_str: ": Enter compose mode to reply to " }; fn rep(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -192,7 +198,8 @@ pub fn send_reply(text: String, twid: TweetId, tweeter: &mut tw::TwitterCache, q pub static QUOTE: Command = Command { keyword: "qt", params: 2, - exec: quote + exec: quote, + help_str: " : Quote with context " }; fn quote(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { @@ -251,7 +258,8 @@ fn quote(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { pub static RETWETE: Command = Command { keyword: "rt", params: 1, - exec: retwete + exec: retwete, + help_str: ": Retweet " }; fn retwete(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { -- cgit v1.1