diff options
Diffstat (limited to 'alfred/helpstrings.py')
| -rw-r--r-- | alfred/helpstrings.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/alfred/helpstrings.py b/alfred/helpstrings.py index d944799..2abaa5f 100644 --- a/alfred/helpstrings.py +++ b/alfred/helpstrings.py @@ -1,4 +1,4 @@ -TOPICS = "topics: srv, bot, files, irc, coffee, vpn, list, git. type !help <topic> for details" +TOPICS = "topics: srv, bot, files, irc, coffee, vpn, list, git, twt. type !help <topic> for details" SRV_TOPIC = "srv: uptime disk mem load status net top topmem io conns who logs. type !help srv <cmd> for details" SRV = { @@ -75,6 +75,15 @@ GIT = { "remove": "git remove: remove a repo, prompts for confirmation. usage: !git remove repo", } +TWF_TOPIC = "twt: last [n] count delete yes no <message>. type !help twt <cmd> for details" +TWF = { + "last": "twt last: show last n twts, most recent first (default 5). usage: !twt last or !twt last n", + "count": "twt count: total number of twts. usage: !twt count", + "delete": "twt delete: delete the most recent twt, asks for confirmation. usage: !twt delete", + "yes": "twt yes or no: confirm or cancel a pending delete. usage: !twt yes or !twt no", + "no": "twt yes or no: confirm or cancel a pending delete. usage: !twt yes or !twt no", +} + TOPIC_MAP = { "srv": (SRV_TOPIC, SRV), "bot": (BOT_TOPIC, BOT), @@ -84,9 +93,10 @@ TOPIC_MAP = { "vpn": (VPN_TOPIC, VPN), "list": (LIST_TOPIC, LIST), "git": (GIT_TOPIC, GIT), + "twt": (TWF_TOPIC, TWF), } -_ALL = {**SRV, **BOT, **FILES, **IRC, **COFFEE, **VPN, **LIST, **GIT} +_ALL = {**SRV, **BOT, **FILES, **IRC, **COFFEE, **VPN, **LIST, **GIT, **TWF} def lookup(args): |
