diff options
Diffstat (limited to 'src/commands/twete.rs')
-rw-r--r-- | src/commands/twete.rs | 20 |
1 files changed, 14 insertions, 6 deletions
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: "<tweet_id>: Delete tweet <tweet_id>" }; 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: "<tweet_id>: Enter compose mode to reply to <tweet_id>" }; 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: "<tweet_id> <text>: Quote <tweet_id> with context <text>" }; 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: "<tweet_id>: Retweet <tweet_id>" }; fn retwete(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { |