8000 chore: add a help message for `gitlab project-key enable` · python-gitlab/python-gitlab@1291dbb · GitHub
[go: up one dir, main page]

Skip to content

Commit 1291dbb

Browse files
JohnVillalovosnejch
authored andcommitted
chore: add a help message for gitlab project-key enable
Add some help text for `gitlab project-key enable`. This both adds help text and shows how to use the new `help` feature. Example: $ gitlab project-key --help usage: gitlab project-key [-h] {list,get,create,update,delete,enable} ... options: -h, --help show this help message a 8000 nd 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 enable Enable a deploy key for the project
1 parent 9acd2d2 commit 1291dbb

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
def enable(

0 commit comments

Comments
 (0)
0