Skip to content

feat: add user-defined command aliases via ~/.bernstein/aliases.yaml#275

Closed
TheCodingDragon0 wants to merge 2 commits into
sipyourdrink-ltd:mainfrom
TheCodingDragon0:feat/user-aliases-clean
Closed

feat: add user-defined command aliases via ~/.bernstein/aliases.yaml#275
TheCodingDragon0 wants to merge 2 commits into
sipyourdrink-ltd:mainfrom
TheCodingDragon0:feat/user-aliases-clean

Conversation

@TheCodingDragon0

Copy link
Copy Markdown
Contributor

Resubmission of #265 (closed before Pyright fixes landed).

Fixes #249

Extended the alias system to support user-defined aliases loaded from ~/.bernstein/aliases.yaml. User aliases override built-in ones. The �ernstein aliases command now shows whether each alias is built-in or user-defined.

Changes:

  • Added _load_user_aliases() to load aliases from YAML
  • Added _merge_aliases() called at module load time
  • Updated �liases_cmd to show source column (built-in vs user)
  • Graceful handling of missing/invalid YAML files
  • Pyright strict-mode typing issues resolved

@kilo-code-bot

kilo-code-bot Bot commented Apr 6, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • src/bernstein/cli/aliases.py - 0 issues

Reviewed by grok-code-fast-1 · 146,863 tokens

@sonarqubecloud

sonarqubecloud Bot commented Apr 6, 2026

Copy link
Copy Markdown

@chernistry

Copy link
Copy Markdown
Collaborator

This was already merged as part of #264 (including the Pyright fixes). Thanks for resubmitting, but it's all in main already! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user-defined command aliases via ~/.bernstein/aliases.yaml

2 participants