Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Custom cli actions fix#760

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

kkoralsky
Copy link
Contributor

run into 2 cli custom actions related issues while wokring on#759

  • *Manager custom actions (in_obj=False) ask formanaged object id for example:
    • $ gitlab project-key enable --help or
    • $ gitlab runner all --help
  • *Manager custom actions (in_obj=False) dont get -/_ method name replaced

@max-wittig
Copy link
Member

Thanks for the contribution. What do you mean withask for managed object id for example:. I've tested your changes against master and don't see any difference in CLI output.

@kkoralsky
Copy link
ContributorAuthor

Basically for the first example action (gitlab project-key enable), cli would require --id and --key-id mandatory flags,

(ansdev3) koral@x270 ~/w/python-gitlab ±master⚡ » gitlab project-key enable --helpusage: gitlab project-key enable [-h] --project-id PROJECT_ID [--sudo SUDO]                                 --id ID --key-id KEY_IDoptional arguments:  -h, --help            show this help message and exit  --project-id PROJECT_ID  --sudo SUDO  --id ID  --key-id KEY_ID

I doubled checked if I did push all changes here is output on my branch:

(ansdev3) koral@x270 ~/w/python-gitlab ±custom_cli_actions_fix⚡ » gitlab project-key enable --helpusage: gitlab project-key enable [-h] --project-id PROJECT_ID [--sudo SUDO]                                 --key-id KEY_IDoptional arguments:  -h, --help            show this help message and exit  --project-id PROJECT_ID  --sudo SUDO  --key-id KEY_ID

@kkoralskykkoralsky mentioned this pull requestMay 2, 2019
@max-wittigmax-wittig merged commite8823e9 intopython-gitlab:masterMay 10, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kkoralsky@max-wittig

[8]ページ先頭

©2009-2025 Movatter.jp