Skip to content

Fix alias bug in Timber's zsh wrapper, t - #126

Merged
nnutter merged 2 commits into
masterfrom
c-bug
Nov 19, 2026
Merged

nnutter merged 2 commits into
masterfrom
c-bug

Conversation

@nnutter

@nnutter nnutter commented Nov 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

The generated t wrapper only matched canonical names for create and
repo, so invocations using their Cobra aliases (t c and t rp) fell
through to timber without directory switching, --no-cd handling, or
--no-cd flag completion.

Match all aliases for create and repo in the generated wrapper and
completion script, and cover aliases for every wrapper-handled command
in the zsh functional tests.

Change-Id: I5db15b0debac67adc7a3f41c0a9d6ca1c87f010d
Extract command lookup helpers in the zsh generator so wrapper case
patterns and completion rules read command names and aliases directly
from the Cobra command tree rather than duplicating hardcoded lists.

This prevents future alias additions on wrapper-handled commands from
drifting out of sync with the generated shell integration.

Change-Id: Iedbfa45b1689daae565bb3de01a5140bf64723cd
@nnutter
nnutter enabled auto-merge November 19, 2026 15:56
@nnutter
nnutter merged commit d1acc30 into master Nov 19, 2026
3 checks passed
@nnutter
nnutter deleted the c-bug branch November 19, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant