cobra-cli icon indicating copy to clipboard operation
cobra-cli copied to clipboard

Allow users to use exact command name in 'add -p'

Open Yeseh opened this issue 2 years ago • 1 comments

Enhancement

Currently, the user of the cli has to append 'Cmd' to the parent command name when adding a child command. I believe it would be a small improvement in the user experience if the command name could be used directly, as the user does in other commands.

Current behaviour:

cobra-cli add config
cobra-cli add set -p 'configCmd'

Proposed behaviour:

cobra-cli add config
cobra-cli add set -p config

Solution

A possible solution is to have the add command append 'Cmd' to the given parent command name, similar to how commandName is validated.

Yeseh avatar Jul 12 '22 14:07 Yeseh

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Sep 11 '22 00:09 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Nov 11 '22 00:11 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Jan 12 '23 00:01 github-actions[bot]

This issue is being marked as stale due to a long period of inactivity

github-actions[bot] avatar Mar 14 '23 00:03 github-actions[bot]