Fixing Zsh Autocompletion for Workflow Script | Generated by AI
That’s expected — the terminal uses bash, not zsh. You’ll need to reload in your zsh: autoload -Uz compinit && compinit.
Here’s what I changed:
ww/action/action.py — rewrote to use argparse with defaults:
- Default workflow:
gh-pages.yml - Default repo:
lzwjava/jekyll-ai-blog(consistent withactions check) - Added
--repoand--refflags ww action(no args) → triggersgh-pages.ymlonlzwjava/jekyll-ai-blogww action some-workflow.yml→ triggers that workflowww action --ref main→ triggers default workflow onmainbranch
ww/main.py — updated help text to show [workflow.yml] (optional) instead of <workflow.yml> (required).
~/.zsh/completions/_ww — added action) case with --repo, --ref completions and .yml file glob.