Skip to content

feat(overlays): support command use rename#66

Merged
samzong merged 1 commit into
mainfrom
feat/overlay-use-rename
Jun 25, 2026
Merged

feat(overlays): support command use rename#66
samzong merged 1 commit into
mainfrom
feat/overlay-use-rename

Conversation

@samzong

@samzong samzong commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add an overlay use field so command overlays can rename the canonical generated command name.
  • Validate final generated command paths after overlays so rename conflicts fail codegen.
  • Document the overlay example and cover parsing, merge behavior, and conflict validation with tests.

Closes #62.

Verification

  • make check
  • git diff --cached --check

Compatibility

This is opt-in overlay behavior. Existing generated command names are unchanged unless an overlay sets commands.<old-use>.use. When set, generated Cobra command names, runtime catalog paths, and generated Skill references use the renamed command. Catalog schema is unchanged.

Checklist

  • Tests or focused verification cover the changed surface.
  • User-facing behavior changes are documented.
  • Generated output under internal/generated/, .cache/, and ad-hoc skills/<cli-name>/ directories is not committed.
  • Commits are signed off when this is ready to merge.

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong samzong merged commit bcb7c1a into main Jun 25, 2026
3 checks passed
@samzong samzong deleted the feat/overlay-use-rename branch June 26, 2026 17: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.

feat: support command use rename in overlays

1 participant