Add Repo Create subcomand & enhancements #173
|
@ -142,7 +142,7 @@ func runReposList(ctx *cli.Context) error {
|
|||
var rps []*gitea.Repository
|
||||
var err error
|
||||
|
||||
// ToDo: on sdk v0.13.0 release, switch to SearchRepos()
|
||||
// TODO: on sdk v0.13.0 release, switch to SearchRepos()
|
||||
6543 marked this conversation as resolved
Outdated
|
||||
// Note: user filter can be used as org filter too
|
||||
if org != "" {
|
||||
rps, err = login.Client().ListOrgRepos(org, gitea.ListOrgReposOptions{})
|
||||
|
|
Loading…
Reference in New Issue
Block a user
TODO:
is usually better detected by IDEsBy using
initCommandLoginOnly()
, the login is not read from the current repo!This came up in #189 as well, where I wrote a workaround.
But we need a proper solution for cases where the command is meaningful when executed outside of a repo, but we still want it to consider repo context where available.
If we use
login, _, _ := initCommand()
outside of a repo we will get this:Error: repository does not exist
So yes we somehow have to unify both commands but in a way it will work for all commands
... witch is no mouch for this pull