aboutsummaryrefslogtreecommitdiffstats
path: root/CLAUDE.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-31 09:04:08 +0200
committerDanilo M. <danix@danix.xyz>2026-07-31 09:04:08 +0200
commit24282ce623c8fa2994cc51723f96adc9d64e4b67 (patch)
treef1196ce7bfb0ef44903921150f0fc3d912be7762 /CLAUDE.md
parent2a52cb81744a55251dfd05cc1b2c4ee8dd311ebe (diff)
downloadtg_backup-24282ce623c8fa2994cc51723f96adc9d64e4b67.tar.gz
tg_backup-24282ce623c8fa2994cc51723f96adc9d64e4b67.zip
feat: add bash completionHEADmaster
Completes the flags, and directories for --archive-dir in both the --opt value and --opt=value forms. --target offers only "me": real chat handles would need a network round-trip inside a tab press, and --list-chats already answers that question. Installed by hand, nothing automates it. A new flag has to be added to opts in the completion as well. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index e0fb0e1..f55e570 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -4,7 +4,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## What this is
-Single-file Python script (`tg_backup.py`, ~115 lines) that incrementally downloads media (photos + documents) from a Telegram chat/group via Telethon. No package, no tests, no build step. Keep it single-file unless there is a real reason not to.
+Single-file Python script (`tg_backup.py`) that incrementally downloads media (photos + documents) from a Telegram chat/group via Telethon. No package, no tests, no build step. Keep it single-file unless there is a real reason not to.
+
+`tg_backup.bash-completion` sits alongside it: an optional bash completion for the flags, with directory completion for `--archive-dir` (both `--opt value` and `--opt=value` forms) and no completion for `--target`, which would need a network round-trip. It relies on `_filedir` from the bash-completion package. Installed by hand to `/usr/share/bash-completion/completions/tg_backup.py`; nothing automates that. Adding a flag to the script means adding it to `opts` there too.
Dependency: `telethon` only.