handle global Flags #28
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#28
Loading…
Reference in New Issue
Block a user
No description provided.
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?
Author: @root360-AndreasUlm
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:
Author: @root360-AndreasUlm
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.
Author: @lunny
@root360-AndreasUlm I think #26 is easier for review.
Author: @root360-AndreasUlm
@lunny then let's go with #26.
I'll close #15 and #27.
Now that #39 is merged, we should be able to close this.
Note though, that the following is not possible anymore:
Is this intentional? This syntax to me has the best ergonomics for command iteration
other issue #57
@lunny hope this if fine for you?
@6543 OK. I missed this.