mirror of
https://github.com/go-gitea/tea.git
synced 2026-07-01 21:03:59 -04:00
[GH-ISSUE #28] handle global Flags #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @root360-AndreasUlm on GitHub (May 2, 2019).
Original GitHub issue: https://github.com/go-gitea/tea/issues/28
While trying to solve #12 with PR #15 several options were discussed.
To move the discussion out of the PR and summarize the available options I create this issue.
The short summary of the problem #12 pointed out is that the current CLI lib does not inherit global flags into several subcommands (see https://github.com/urfave/cli/issues/585)
The currently available options are:
To compare both options I created a branch in my fork for each of them:
@root360-AndreasUlm commented on GitHub (May 2, 2019):
After implementing #26 I found this solution to be easier and the workaround seems to work quite well.
The switch to Cobra will take more time.
@lunny commented on GitHub (May 2, 2019):
@root360-AndreasUlm I think #26 is easier for review.
@root360-AndreasUlm commented on GitHub (May 2, 2019):
@lunny then let's go with #26.
I'll close #15 and #27.
handle global Flagsto [GH-ISSUE #28] handle global Flags