initial imlementation of list repos (#3) #13
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#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "root360-AndreasUlm/list_repos"
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
Output:
Signed-off-by: Andreas Ulm andreas.ulm@root360.de
Author: @lunny
I think
noheader
flag seems unnecessary. We always needs a header. But for format print on console,\t
will not always available.Author: @root360-AndreasUlm
@lunny I just added the option to allow further output usage without requiring something like
| tail -n -1 |
to exclude the header.I just copied the output format from pulls.runPulls().
Author: @root360-AndreasUlm
@lunny removed header flag and changed delimiter to pipe.
When I'm done with the unified output ( https://github.com/root360-AndreasUlm/tea/tree/unified_output_function ) the output of this function will be changed again.
Does each command have this
--login
switch ? Sounds like a lot of duplicated code ahead if that's the case ?yes, it has. But if you are in a git repo which has a gitea remote. it could be recognized and
--login
could be ignored.It would be useful to reduce duplication to centralize those switches.
BTW, I tried adding support for a
-h
flag (for pull-request support, see https://gitea.com/strk/tea/src/branch/pulls-create) but it failed because "-h
already exists", suggesting something like "global switches" do exist.Mind you: I could not create a pull-request for my
pull-request
support becuase of https://github.com/go-gitea/gitea/issues/7110 (if you want to take a look)I have no permission to approve this PR. :(
@ -0,0 +43,4 @@
},
cli.StringFlag{
Name: "mode",
Usage: "Indicate one login, optional when inside a gitea repository",
Wrong description
I'd really look how to use global switches instead of this repeated login/password thing, btw (yes I can see the switch is not really about login)
@ -0,0 +47,4 @@
},
cli.StringFlag{
Name: "org",
Usage: "Indicate one login, optional when inside a gitea repository",
As above
@ -0,0 +51,4 @@
},
cli.StringFlag{
Name: "user",
Usage: "Indicate one login, optional when inside a gitea repository",
As above
replaced by #44
Pull request closed