diff --git a/CHANGELOG.md b/CHANGELOG.md index 86fed111..eac7dc72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - +## [Unreleased] + +### Fixed + +- REPL command completion not showing descriptions for commands. ## [1.1.0](https://github.com/unioslo/mreg-cli/releases/tag/1.1.0) - 2024-11-19 diff --git a/mreg_cli/cli.py b/mreg_cli/cli.py index fac17e00..0e69a788 100644 --- a/mreg_cli/cli.py +++ b/mreg_cli/cli.py @@ -222,6 +222,7 @@ def complete(self, cur: str, words: list[str]) -> Generator[Completion | Any, An yield Completion( name, start_position=-len(cur), + display_meta=self.children[name].short_desc, ) # if the line starts with one of the sub commands, pass it along