Giter Club home page Giter Club logo

gitlab-cli's Introduction

gitlab-cli's People

Contributors

bfontaine avatar erikthered avatar makkes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gitlab-cli's Issues

animated gif uses wrong command name?

I just downloaded onto Debian using the curl method and found that the 'gitlab-cli' example in the animated gif on the repo doesn't work because the command is called 'gitlab' now :-)

Install doesn't work on macOS install: illegal option -- t

Running on intel based macOS bigSur

❯ curl -sSfL https://raw.githubusercontent.com/makkes/gitlab-cli/master/install.sh | sh -s       
Downloading gitlab v3.7.3...
######################################################################## 100.0%##O=#  #                                                                      
install: illegal option -- t
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...

However I downloaded the binary and put it manually, no idea about the install command.

Trying to understand the scope of gitlab-cli

I've managed to authenticate to our self-hosted gitlab CE server and get some information out of it, but there doesn't seem to be any documentation of the CLI other than the 'help' output (is that correct?)

It seems like the CLI acts as a 1:1 wrapper around gitlab API v4 requests, so if I want to list all the projects, I have to keep invoking 'gitlab projects --page NNN' until it runs out, similarly for other information like issues. Are there more powerful capabilities of the API that would let it, for example, return all the projects in one command?

I'm not intending to rag on the CLI for not being something it's not, just to understand what it is capable of at present.

Make the commands more intuitive

The fact that commands are comprised by gitlab NOUN VERB has proven to make the CLI somewhat counterintuitive to use while the gitlab VERB NOUN paradigm has proven to be very successful in other projects, such as kubectl.

Therefore, we would like to change the syntax in the following way:

now future done
issue inspect ISSUE_ID inspect issue ISSUE_ID
pipeline PIPELINE_ID inspect pipeline PIPELINE_ID
project inspect PROJECT_ID inspect project PROJECT_ID
issues PROJECT_ID -p PROJECT_ID get issues
pipelines PROJECT_ID -p PROJECT_ID get pipelines
var list PROJECT_ID -p PROJECT_ID get vars
projects get projects
project create NAME create project NAME
var create PROJ KEY VAL -p PROJECT_ID create var KEY VAL
var remove PROJECT_ID KEY -p PROJECT_ID delete vars KEY
completion completion
login login
status status
update update
version version

Only update within same major version

When running gitlab update, the tool should stay within the same major version to ensure backwards compatibility.

Users should still be able to upgrade to a newer major version by providing a flag.

Remove -cli from the executable name?

Hello, any reason to append -cli to the executable name? We know it’s a CLI tool, since we use it… from the CLI. Typing $ gitlab projects would seem more natural than $ gitlab-cli projects.

Thoughts?

No integration tests

There are no integration tests for this CLI. This will be a huge problem as soon as GitLab changes the API.

File type of install downloads

I tried the Go install command and it said there were no files

The instructions say as the last resort download the install files, which are listed as gitlab_v4.1.0-alpha.2_windows_amd64 for Windows.

Windows tries to open that with the Windows Store, which is probably not right. What are the extensions? What are the file types? What is the last-last resort?

I'm on Windows 10.

Option to list group projects

The projects command only shows personal projects and I couldn't see a way to view projects from groups you're a member of. It would be nice to have a way to view these from the CLI.

CI is broken

https://github.com/makkes/gitlab-cli/pull/51/checks?check_run_id=1445009039:

Error: Unable to process command '##[set-env name=GOROOT;]/opt/hostedtoolcache/go/1.15.5/x64' successfully.
Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Error: Unable to process command '##[add-path]/opt/hostedtoolcache/go/1.15.5/x64/bin' successfully.
Error: The `add-path` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Possible to create a new issue in a project?

Currently the only command referenced for issue is inspect.
Would it be possible to add a create command with parameters:

  • title
  • details

This would make adding issues way quicker than the somewhat complicated process in Gitlab.

Add pagination support

Not sure if this is due to inherent pagination in the GitLab API but for a project with over 20 CI/CD vars, only the first 20 are listed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.