Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): add some simple help for the standard operations #2861

Merged
merged 1 commit into from May 17, 2024

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented May 10, 2024

Add help for the following standard operations:

  • list: List the GitLab resources
  • get: Get a GitLab resource
  • create: Create a GitLab resource
  • update: Update a GitLab resource
  • delete: Delete a GitLab resource

For example:

  $ gitlab project-key --help
  usage: gitlab project-key [-h] {list,get,create,update,delete,enable} ...

  options:
    -h, --help            show this help message and exit

  action:
    list
    get
    create
    update
    delete
    enable
                     Action to execute on the GitLab resource.
      list                List the GitLab resources
      get                 Get a GitLab resource
      create              Create a GitLab resource
      update              Update a GitLab resource
      delete              Delete a GitLab resource

@JohnVillalovos JohnVillalovos requested a review from nejch May 11, 2024 07:49
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/list_get_help branch 2 times, most recently from dd353c3 to 086b351 Compare May 13, 2024 22:37
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/list_get_help branch 2 times, most recently from ed73137 to cc7c52e Compare May 17, 2024 05:03
Add help for the following standard operations:
  * list: List the GitLab resources
  * get: Get a GitLab resource
  * create: Create a GitLab resource
  * update: Update a GitLab resource
  * delete: Delete a GitLab resource

For example:
  $ gitlab project-key --help
  usage: gitlab project-key [-h] {list,get,create,update,delete,enable} ...

  options:
    -h, --help            show this help message and exit

  action:
    list
    get
    create
    update
    delete
    enable
                          Action to execute on the GitLab resource.
      list                List the GitLab resources
      get                 Get a GitLab resource
      create              Create a GitLab resource
      update              Update a GitLab resource
      delete              Delete a GitLab resource
Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks a lot @JohnVillalovos

gitlab/v4/cli.py Show resolved Hide resolved
@nejch nejch enabled auto-merge (rebase) May 17, 2024 11:47
@nejch nejch merged commit 5a4a940 into main May 17, 2024
16 checks passed
@nejch nejch deleted the jlvillal/list_get_help branch May 17, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants