diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 04:35:35 -0800 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-11 16:00:31 -0800 |
commit | 73dc5dda6b8ca8a8bdae0f620442e359871b0152 (patch) | |
tree | 1a3a0ff74bedf1788079ba642eb222f6a4d23c9d /src/commands/auth.rs | |
parent | 3601bf6433d46dea4dd1960f7a3cdc514602983d (diff) |
start adding help reference
Diffstat (limited to 'src/commands/auth.rs')
-rw-r--r-- | src/commands/auth.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/commands/auth.rs b/src/commands/auth.rs index 0ed006b..0a2425d 100644 --- a/src/commands/auth.rs +++ b/src/commands/auth.rs @@ -14,7 +14,9 @@ static UNFAV_TWEET_URL: &str = "https://api.twitter.com/1.1/favorites/destroy.js pub static AUTH: Command = Command { keyword: "auth", params: 0, - exec: auth + exec: auth, + // TODO: support account-specific auth? profile name spec? + help_str: "Begin PIN-based account auth process. Second step is the `pin` command." }; static OAUTH_REQUEST_TOKEN_URL: &str = "https://api.twitter.com/oauth/request_token"; @@ -54,7 +56,8 @@ fn auth(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { pub static PIN: Command = Command { keyword: "pin", params: 1, - exec: pin + exec: pin, + help_str: "<PIN>: Complete account auth. Enter PIN from prior `auth` link to connect an account." }; fn pin(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) { |