cobra icon indicating copy to clipboard operation
cobra copied to clipboard

args: add new `UnknownCommandError` type

Open mvo5 opened this issue 6 months ago • 2 comments

This commit makes unknown commands a proper error type so that the caller can check for this specific error type without having to do string comparisons.

This is useful in the context of https://github.com/spf13/cobra/issues/823

mvo5 avatar Aug 16 '24 15:08 mvo5