From 4cace2f42208bc54298894d4bc0988b165bd73da Mon Sep 17 00:00:00 2001 From: Ahmed Date: Sun, 14 Jun 2026 16:39:16 +0300 Subject: add: hooks, documentation, and other vibed edits --- alfred/helpstrings.py | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'alfred') 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 for details" +TOPICS = "topics: srv, bot, files, irc, coffee, vpn, list, git. type !help for details" SRV_TOPIC = "srv: uptime disk mem load status net top topmem io conns who logs. type !help srv 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 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 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 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): -- cgit v1.2.3