bijancn / gitlabctl

Control gitlab from the command line
MIT License
1 stars 2 forks source link

Implement get projects #2

Open bijancn opened 4 years ago

bijancn commented 4 years ago

Currently gitlabctl can only get environments. To do that we first get all projects and then get all environments of these projects. An obvious enhancement to gitlabctl would be add get projects.

I like to stick with an overview style as it is known from kubectl. I'm not sure yet what are useful informations about a project to show next to the project name. Probably the same info as https://gitlab.com/explore ? So stars, forks, MRs, issues, updated on.

SeanMcLoughlin commented 4 years ago

I'd like to work on this, but could you please provide an example of a gitlab.toml file to test this with?

bijancn commented 4 years ago

Hi @SeanMcLoughlin . Of course, I added it to the README https://github.com/bijancn/gitlabctl/blob/master/README.md#configuration

SeanMcLoughlin commented 4 years ago

Is there any URL you'd recommend that isn't as slow as gitlab.com? It just hangs. I've tried it with my own GitLab personal project URL and I keep getting an err deserialization err. I've also tried it with my organization's private GitLab instance and get err gitlab error: 401 unauthorized.

bijancn commented 4 years ago

Hey @SeanMcLoughlin . Sorry for not getting back to you. Maybe you can try this server https://gitlab.kitware.com/explore/groups (not sure if they use environments but that's where the rust gitlab library is hosted as well). The unauthorized sounds like you should check with your gitlab admin