Overview¶
This folder contains scripts and installable programs that I find useful.
Layout¶
Authoring conventions¶
All scripts should follow these basics:
-
Shebang and strict mode:
-
Be executable:
chmod +x scripts/bin/<name> - Provide
-h|--helpusage. - Avoid reading from TTY unless necessary
- Keep
bin/flat (no subdirectories)
CI Bot¶
bin/ci-bot is a Python + Click CLI for managing CI template setup and token refreshes.
- Registry file:
~/.config/ci_bot/repos.json - Default token file:
~/.config/tokens/ci_bot.token - Main commands:
ci-bot setupci-bot updateci-bot token setci-bot token listci-bot token refreshci-bot repo list|add|remove
Git Account Switching¶
git-use rewrites a repo remote to use one of your GitHub SSH host aliases during account migration.
Example: