Skip to content

Commit

Permalink
Fix broken command completion rendering for top-level commands (#309)
Browse files Browse the repository at this point in the history
* Fix invalid command completion on single char input
* Remove `display_meta` for top-level completions
  • Loading branch information
pederhan authored Oct 16, 2024
1 parent 3d588cb commit b4527ac
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mreg_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ def complete(self, cur: str, words: list[str]) -> Generator[Completion | Any, An
if name.startswith(cur) and cur:
yield Completion(
name,
display_meta=self.children[name].short_desc,
start_position=-len(cur),
)

Expand Down

0 comments on commit b4527ac

Please sign in to comment.