@@ -95,34 +95,37 @@ The first argument is the object type on which we will act, the second one is
9595the action:
9696
9797`````
98- gitlab Project list
98+ gitlab project list
9999`````
100100
101101The usable objects are those which inherits GitlabObject (yes, the source is
102- the doc ATM), and the actions are list, get, create, update, delete.
102+ the doc ATM), with a bit of string transformation (Project => project,
103+ ProjectIssue => project-issue, ...).
104+
105+ The actions are list, get, create, update, delete.
103106
104107Some examples:
105108
106109````` bash
107110# list all the projects:
108- gitlab Project list
111+ gitlab project list
109112
110113# get a specific project (id 2):
111- gitlab Project get --id=2
114+ gitlab project get --id=2
112115
113116# get a list of snippets for this project:
114- gitlab ProjectIssue list --project_id=2
117+ gitlab project-issue list --project_id=2
115118
116119# delete a Snippet (id 3):
117- gitlab ProjectSnippet delete --id=3 --project_id=2
120+ gitlab project-snippet delete --id=3 --project_id=2
118121
119122# update a Snippet:
120- gitlab ProjectSnippet update --id=4 --project_id=2 --code=" My New Code"
123+ gitlab project-snippet update --id=4 --project_id=2 --code=" My New Code"
121124
122125# create a Snippet:
123- gitlab ProjectSnippet create --project_id=2
126+ gitlab project-snippet create --project_id=2
124127Impossible to create object (Missing attribute(s): title, file_name, code)
125128
126129# oops, let's add the attributes:
127- gitlab ProjectSnippet create --project_id=2 --title=" the title" --file_name=" the name" --code=" the code"
130+ gitlab project-snippet create --project_id=2 --title=" the title" --file_name=" the name" --code=" the code"
128131`````
0 commit comments