Add more command shorthands #307
Merged
6543
merged 2 commits from noerw/tea:aliases
into master
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'noerw/tea:aliases'
Deleting a branch is permanent. It CANNOT be undone. Continue?
fixes #305
One change is breaking:
tea notif
->tea n
var CmdReleases = cli.Command{
Name: "releases",
Aliases: []string{"release"},
Aliases: []string{"release", "r"},
what about repo shortcut?
i think
rel
&rep
are the shortest unique here ...True. though
rep
is not really shorter thanrepo
, so i went the route of shortining the longer word.. idkWebshould 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)
Sorry, I may express myself wrongly. I mean users could customize their alias. Just like
git alias
command, we can havetea alias
or change that on tea config file.@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
Hm, why the labels comments missed. :(
@lunny https://github.com/go-gitea/gitea/issues/13923
782a6318f3
into master 2 years ago782a6318f3
.