Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken command completion rendering for top-level commands #309

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

pederhan
Copy link
Member

@pederhan pederhan commented Oct 16, 2024

The number of words in the short help text of top-level commands (host, help, etc.) would influence the rendering of their CLI completions, leading to h displaying help and host as completions on the same line, making it look like the suggested completion was help host.

Very bizarre. To fix this we just disable display_meta for top-level command completions. Yeah, not ideal.

@pederhan pederhan requested a review from terjekv October 16, 2024 10:17
Copy link
Collaborator

@terjekv terjekv left a comment

Choose a reason for hiding this comment

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

Looks terrifying to me, but tests well.

@terjekv terjekv merged commit b4527ac into unioslo:master Oct 16, 2024
6 checks passed
@pederhan pederhan deleted the fix-invalid-1char-completion branch October 16, 2024 12:35
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.

2 participants