Replies: 14 comments 3 replies
-
I'd be a bit sad to see this go. We're just getting ready to launch a
GitLab instance on our campus, and for my team, having quick CLI tools to
help with some administrative work has the potential to be extremely
helpful, as we've already seen with some of our other services like Google
and Box. If the CLI is to be removed, could anyone make a suggestion as to
a good alternative?
…On Fri, Feb 22, 2019 at 9:51 AM Gauvain Pocentek ***@***.***> wrote:
The CLI is not in a good shape today, compared the rest of the library.
Alternatives exist and seem to do a better job.
@max-wittig <https://github.com/max-wittig> and I don't use the CLI, and
don't have much to improve it so we are considering removing it from the
python-gitlab code.
The decision is not made, and we hope to get some feedback from users in
this issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#708>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AjpHj7QsBuDJTl4srbYf3E6oDvzFPsfIks5vQAP1gaJpZM4bJwDk>
.
--
*Rob Carleski*
ITS Collaboration Services
University of Michigan
734.764.2777
|
Beta Was this translation helpful? Give feedback.
-
Like mentioned above, we haven't made a final decision yet. But https://github.com/michaellihs/golab seems to be pretty good. |
Beta Was this translation helpful? Give feedback.
-
I was just about to fill a couple of bugs in the gitlab CLI. They can be fixed easily. What exactly is meant by "not in a good shape"? Does it mean that the code is so buggy that it is not worth fixing? Or that there are some bugs but no one to fix them? Or that the CLI API is incomplete? If the CLI is in relatively good shape but some functionalities are missing or do not work because of simple bugs, then I'd vote for fixing them and letting the CLI alive. I actually found your project a couple of days ago because I was searching for a command-line gitlab client. I like yours, especially because it is written in python which I know (in contrast to ruby or go). |
Beta Was this translation helpful? Give feedback.
-
Thanks for your opinion on this. The thing about CLI programs is that they are language independent and we're just two people maintaining this library (and neither of use uses the CLI). It would be cool, if we would get more people to help here. |
Beta Was this translation helpful? Give feedback.
-
I was shortly looking at golab docs, and I'm missing such basic functionality like listing groups hierarchy. However, I haven't installed golab yet, so maybe golab shows the group hierarchy in its console output. But the docs for command "golab group ls" do not suggest anything like that. |
Beta Was this translation helpful? Give feedback.
-
@xarx00 here is a list of bugs if you want to look into fixing the CLI: https://github.com/python-gitlab/python-gitlab/issues?q=is%3Aissue+is%3Aopen+label%3Acli We can of course help if you have questions :) Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm afraid I have no capacity to contribute, but I do use the CLI and I'd like to see the functionality preserved if possible. I'd much rather install a single library with a unified conceptual approach than have to install two packages which are based on different languages and, inevitably, different conceptual approaches to the CLI. |
Beta Was this translation helpful? Give feedback.
-
Hi all, Not much progress on this in the last 3 months. Here is the status:
Today the CLI and lib are tightly linked (plenty of attributes defined in the python classes), and the CLI code uses lib introspection to handle argument parsing. It is painful, and doesn't work well. I think we should keep the lib simple since it works fine this way, and we should move the "complexities" (types, mandatory/option arguments, ...) to the CLI, where it makes more sense. |
Beta Was this translation helpful? Give feedback.
-
Let's preserve the CLI, even though it might be worse than something like https://github.com/michaellihs/golab, but people still use the python-gitlab CLI a lot. |
Beta Was this translation helpful? Give feedback.
-
I recently stumbled upon this project as I was looking for a tool to help me do some basic GitLab admin from the command line (most notably checking up on runners and seeing job failures). The fact that there were extensive docs to go hand-in-hand with the API docs gave me a warm feeling. I found the CLI easy to pick up largely because of the docs, although the help for the entire list of resources is a little unwieldy and I see a couple of issues already raised around that. Aside from that it's been pretty easy from using the docs to work out what My only real stumbling block with the CLI was the sparsity of the output in the default (legacy) mode. I was confused by the lack of properties on display and spent ages looking into the Once I had the JSON output it was just a hop, skip, and jump to add some While the library is nice to have as a fallback I do not really know Python and so the CLI is more useful to someone like myself coming from the I'm just one data point but I thought I'd add my vote for it's usefulness as it stands (#593 notwithstanding 🙂). Thanks again for all your hard work, whatever happens. Note: I was not even aware of |
Beta Was this translation helpful? Give feedback.
-
If you are interested, you may look at my fork https://github.com/xarx00/python-gitlab. I fixed some bugs, improved the outputs and implemented various new functions there. The new functions are mainly related to the correspondence between the remote GitLab and its local copy. But I had to change the core slightly, so this fork is now incompatible with the original and cannot be merged easily. If there is enough interest, I can make it mergeable, but the behaviour of the CLI changed a little, which might be a problem for the python-gitlab maintainers. You should be aware, however, that I'm not going to maintain an official clone if this fork won't be merged in to the original python-gitlab. If you're going to test it anyway, you'll need to create a
The
Tested on Windows, only. |
Beta Was this translation helpful? Give feedback.
-
@xarx00 Please contribute here if you have some fixes. |
Beta Was this translation helpful? Give feedback.
-
I've already contributed several fixes. The other fixes would require more or less substantial changes in the core. I don't remember the details, as it is already several months since I made last changes. But that was why I forked, because I was unable to make the fixes and improvements backwards compatible. My aim was to add functionality related to local copy of the remote repository, hence the functionality that is not part of the GitLab REST API. I needed to "bend" some functionality in python-gitlab in order I was able to do that. And, along the way, I did also several fixes and improvements. |
Beta Was this translation helpful? Give feedback.
-
I know of two active CLI tools out there: |
Beta Was this translation helpful? Give feedback.
-
The CLI is not in a good shape today, compared the rest of the library. Alternatives exist and seem to do a better job.
@max-wittig and I don't use the CLI, and don't have much to improve it so we are considering removing it from the python-gitlab code.
The decision is not made, and we hope to get some feedback from users in this issue.
Beta Was this translation helpful? Give feedback.
All reactions