default complete function does not display descriptions #1388
Unanswered
Sripadvallabh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to some requirement, i have made a default command by overriding the default() function as shown below:
Because of this, most of the time users would be invoking 'run' command directly with arguments instead of calling 'run ':
To autocomplete for the default function i have overriden the
completedefault()
function:run_completer()
returns a list ofcmd2.CompletionItem
but i couldn't see the descriptions when i press double <tab>.May i know if there is a way to make this work?
Beta Was this translation helpful? Give feedback.
All reactions