replace flag globals, require context for commands #291
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#291
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:refactor-global-flags"
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?
Another big refactor, I'm sorry :( this should be the last one for now..
If needed I can split this up, but all changes depend on each other anyway.
cmd/flags
(closes #158)TeaContext
, a wrapper aroundcli.Context
InitCommand()
call signature to returnTeaContext
ctx.Ensure()
context
Since #285 all commands can be run outside of a git repo.
For some commands this was desired, for others requirements are too loose now.
This readds requirement checks in a more flexible way.
Could be considered a bugfix and should go into v0.6.0
Please resolve the conflicts.