Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

Fixes #747 .

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@rolandwalker rolandwalker self-assigned this Jan 24, 2026
if is_special:
for result in special_execute(cur, sql):
result.title = title
yield result
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Only suggestion would be adding a comment here to highlight that the special_execute function returns a SQLResult, so that is why it's just yielding the "result" var instead of a SQLResult object like the rest of the yields. Will approve as-is so feel free to add it or not

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@rolandwalker rolandwalker force-pushed the RW/let-favorites-be-special-commands branch from d8deb1c to b5fefc6 Compare January 26, 2026 09:46
@rolandwalker rolandwalker merged commit 4accc18 into main Jan 26, 2026
8 checks passed
@rolandwalker rolandwalker deleted the RW/let-favorites-be-special-commands branch January 26, 2026 09:50
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.

Make favorite queries execute mycli's special commands

3 participants