Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Allow ssh info command to list repositories available #3

Open
xdch47 opened this issue Nov 25, 2018 · 4 comments
Open

Allow ssh info command to list repositories available #3

xdch47 opened this issue Nov 25, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@xdch47
Copy link

xdch47 commented Nov 25, 2018

Certain other repository management tools, such as Gitolite, allow a user to see what repositories they have access to by passing info to the SSH command.

For example, ssh git@git.gitea.io info

The result is a list of repositories.

This is really useful not only for command-line users but also for quickly verifying what access someone has.

Could Gitea support this?

(Moved from go-gitea/gitea#5124)

@lunny
Copy link
Member

lunny commented Nov 26, 2018

I think we can implement both tea repos and ssh git@gitea.gitea.io info.

@root360-AndreasUlm
Copy link
Contributor

Hi,

I'd like to work on the feature to manage repositories as we want to use 'tea' in our company to managed repositories.

My initial focus would be listing of repositories.
The following features for listing are currently on my roadmap:

  1. Do you see any issues with this initial roadmap?

Regards,
Andreas

root360-AndreasUlm added a commit to root360-AndreasUlm/tea that referenced this issue Apr 15, 2019
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
@root360-AndreasUlm
Copy link
Contributor

I created an initial pull request with the ability to list all repositories the provided login has access to.
Currently it is printing repo-fullname, repo-mode, repo-SSH-URL and repo-owner-username.

  1. What do you think about that code?
  2. Which additional information should be listed by default?
  3. Should I maybe implement an argument that give control over the printed columns?

@lunny lunny added the enhancement New feature or request label Apr 16, 2019
root360-AndreasUlm added a commit to root360-AndreasUlm/tea that referenced this issue Apr 28, 2019
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
@root360-AndreasUlm
Copy link
Contributor

I implemented the filter flags into the list subcommand.
The main command 'tea repo' does not allow filtering but list all repos visible to the running user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants