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

Commit1291dbb

Browse files
JohnVillalovosnejch
authored andcommitted
chore: add a help message forgitlab project-key enable
Add some help text for `gitlab project-key enable`. This both addshelp text and shows how to use the new `help` feature.Example:$ gitlab project-key --helpusage: gitlab project-key [-h] {list,get,create,update,delete,enable} ...options: -h, --help show this help message and exitaction: {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 enable Enable a deploy key for the project
1 parent9acd2d2 commit1291dbb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎gitlab/v4/objects/deploy_keys.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ class ProjectKeyManager(CRUDMixin, RESTManager):
3737
_update_attrs=RequiredOptional(optional=("title","can_push"))
3838

3939
@cli.register_custom_action(
40-
cls_names="ProjectKeyManager",required=("key_id",),requires_id=False
40+
cls_names="ProjectKeyManager",
41+
required=("key_id",),
42+
requires_id=False,
43+
help="Enable a deploy key for the project",
4144
)
4245
@exc.on_http_error(exc.GitlabProjectDeployKeyError)
4346
defenable(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp