cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Fix --version help and output for plugins

Open nirs opened this issue 5 months ago • 3 comments

When writing a plugin and setting CommandDisplayNameAnnotation you want the display name to be used in help text. This did not work when setting command Version since the help text and version templates used the command Name().

This change makes command DisplayName() public, so it can be used in templates or other code that want to use this value, and fix --version help text and template to use the command DisplayName().

nirs avatar Aug 24 '24 03:08 nirs