diff options
| author | Ahmed <git@gumx.cc> | 2026-06-14 16:39:16 +0300 |
|---|---|---|
| committer | Ahmed <git@gumx.cc> | 2026-06-14 16:39:16 +0300 |
| commit | 4cace2f42208bc54298894d4bc0988b165bd73da (patch) | |
| tree | 2f4a2d181116fe63c00f168747cd7a73e753e321 /alfred | |
| parent | 5a8d568931d9b23ce0df1265d05259a7012081c9 (diff) | |
add: hooks, documentation, and other vibed edits
Diffstat (limited to 'alfred')
| -rw-r--r-- | alfred/helpstrings.py | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/alfred/helpstrings.py b/alfred/helpstrings.py index 6711340..90c7dbb 100644 --- a/alfred/helpstrings.py +++ b/alfred/helpstrings.py @@ -1,4 +1,4 @@ -TOPICS = "topics: srv, bot, files, irc, coffee. type !help <topic> for details" +TOPICS = "topics: srv, bot, files, irc, coffee, vpn, list, git. 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 = { @@ -52,15 +52,42 @@ COFFEE = { "no": "coffee yes or no: confirm or cancel a pending change. usage: !coffee yes or !coffee no", } +VPN_TOPIC = "vpn: pubkey list add remove. type !help vpn <cmd> for details" +VPN = { + "pubkey": "vpn pubkey: print the WireGuard server public key. usage: !vpn pubkey", + "list": "vpn list: list all peers with IP and pubkey. usage: !vpn list", + "add": "vpn add: add a peer, returns assigned IP and client config URL. usage: !vpn add name pubkey", + "remove": "vpn remove: remove a peer live and from wg0.conf. usage: !vpn remove name", +} + +LIST_TOPIC = "list: members subscribe unsubscribe send. type !help list <cmd> for details" +LIST = { + "members": "list members: show all subscribers. usage: !list members", + "subscribe": "list subscribe: subscribe an address. usage: !list subscribe email", + "unsubscribe": "list unsubscribe: unsubscribe an address. usage: !list unsubscribe email", + "send": "list send: send a message to the list. usage: !list send message", +} + +GIT_TOPIC = "git: list desc hook remove. type !help git <cmd> for details" +GIT = { + "list": "git list: list all repos with last commit time and description. usage: !git list", + "desc": "git desc: set a repo description. usage: !git desc repo text", + "hook": "git hook: install a post-receive hook template. usage: !git hook repo type", + "remove": "git remove: remove a repo, prompts for confirmation. usage: !git remove repo", +} + TOPIC_MAP = { "srv": (SRV_TOPIC, SRV), "bot": (BOT_TOPIC, BOT), "files": (FILES_TOPIC, FILES), "irc": (IRC_TOPIC, IRC), "coffee": (COFFEE_TOPIC, COFFEE), + "vpn": (VPN_TOPIC, VPN), + "list": (LIST_TOPIC, LIST), + "git": (GIT_TOPIC, GIT), } -_ALL = {**SRV, **BOT, **FILES, **IRC, **COFFEE} +_ALL = {**SRV, **BOT, **FILES, **IRC, **COFFEE, **VPN, **LIST, **GIT} def lookup(args): |
