Skip to content

Commit

Permalink
Remove display_meta for top-level completions
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Oct 16, 2024
1 parent 5ee1c3f commit d411e57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mreg_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ 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),
)
break

# if the line starts with one of the sub commands, pass it along
if words[0] in self.children:
Expand Down

0 comments on commit d411e57

Please sign in to comment.