Add more command shorthands #307
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#307
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:aliases"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixes #305
One change is breaking:
tea notif
->tea n
@ -16,3 +16,3 @@
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