Add more command shorthands #307

Merged
6543 merged 2 commits from noerw/tea:aliases into master 2020-12-16 16:47:41 +00:00
Member

fixes #305

One change is breaking: tea notif -> tea n

fixes #305 One change is breaking: `tea notif` -> `tea n`
noerw added this to the v0.7.0 milestone 2020-12-15 22:05:10 +00:00
noerw added the
kind/breaking
kind
enhancement
labels 2020-12-15 22:05:10 +00:00
noerw added 1 commit 2020-12-15 22:05:10 +00:00
add more command aliases
breaking: s/notif/n
All checks were successful
continuous-integration/drone/pr Build is passing
2cac4f9678
6543 reviewed 2020-12-15 22:24:26 +00:00
Dismissed
@ -16,3 +16,3 @@
var CmdReleases = cli.Command{
Name: "releases",
Aliases: []string{"release"},
Aliases: []string{"release", "r"},
Owner

what about repo shortcut?

i think rel & rep are the shortest unique here ...

what about repo shortcut? i think `rel` & `rep` are the shortest unique here ...
Author
Member

True. though rep is not really shorter than repo, so i went the route of shortining the longer word.. idk

True. though `rep` is not really shorter than `repo`, so i went the route of shortining the longer word.. idk
6543 marked this conversation as resolved
6543 approved these changes 2020-12-16 06:36:55 +00:00
Dismissed
6543 left a comment
Owner

Webshould look if we can make some sort of "Longest Prefix Matching" if urfave/cli supports it

(As son as it is unique and match e.g. rep for repo it gets valide)

Webshould look if we can make some sort of "Longest Prefix Matching" if urfave/cli supports it (As son as it is unique and match e.g. rep for repo it gets valide)
Owner

Sorry, I may express myself wrongly. I mean users could customize their alias. Just like git alias command, we can have tea alias or change that on tea config file.

Sorry, I may express myself wrongly. I mean users could customize their alias. Just like `git alias` command, we can have `tea alias` or change that on tea config file.
Author
Member

@lunny Ah ok. oof, thats not gonna be simple. Less time will be spent with telling users to build from source & changing their preferred aliases ;)

@6453 agree that would be great. but i don't see that coming in urfave/cli. I requested it anyways :D

@lunny Ah ok. oof, thats not gonna be simple. Less time will be spent with telling users to build from source & changing their preferred aliases ;) @6453 agree that would be great. but i don't see that coming in urfave/cli. I [requested it anyways](https://github.com/urfave/cli/issues/1215) :D
Owner

Hm, why the labels comments missed. :(

Hm, why the labels comments missed. :(
Author
Member
@lunny https://github.com/go-gitea/gitea/issues/13923
lunny approved these changes 2020-12-16 12:14:50 +00:00
Dismissed
6543 added 1 commit 2020-12-16 16:18:43 +00:00
Merge branch 'master' into aliases
All checks were successful
continuous-integration/drone/pr Build is passing
753d9b3c9e
6543 merged commit 782a6318f3 into master 2020-12-16 16:47:41 +00:00
noerw deleted branch aliases 2020-12-16 17:07:36 +00:00
Sign in to join this conversation.
No description provided.