Replies: 1 comment 2 replies
-
|
I'm not against it. I like that it's explicit, as that avoids my main objection against automatic prefix matching, which is the problem with backwards incompatible changes. But this is pretty nice. What would the help look like? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wanting to gauge whether this would be an accepted feature! See #66 (comment), where I saw this mentioned before. I want to implement something like the
ip address command, which can be called usingip address,ip addr,ip a, etc - all prefixes ofaddressare allowed. Manually specifying all allowed values in kong is currently very verbose, and clutters up the help.Here's a potential proposal to allow something like this - added as an extension to
aliasesso that each command would need to opt into this.Essentially, something like:
Would allow all of:
$ cmd certificates $ cmd certificate $ cmd cert $ cmd certif # weird but allowedFor showing aliases in the help, we can abbreviate this to
cert[ificates].Very very happy to submit a patch for this, but wanted to see if it's a good idea first.
Beta Was this translation helpful? Give feedback.
All reactions