@@ -95,34 +95,37 @@ The first argument is the object type on which we will act, the second one is
95
95
the action:
96
96
97
97
`````
98
- gitlab Project list
98
+ gitlab project list
99
99
`````
100
100
101
101
The 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.
103
106
104
107
Some examples:
105
108
106
109
````` bash
107
110
# list all the projects:
108
- gitlab Project list
111
+ gitlab project list
109
112
110
113
# get a specific project (id 2):
111
- gitlab Project get --id=2
114
+ gitlab project get --id=2
112
115
113
116
# get a list of snippets for this project:
114
- gitlab ProjectIssue list --project_id=2
117
+ gitlab project-issue list --project_id=2
115
118
116
119
# delete a Snippet (id 3):
117
- gitlab ProjectSnippet delete --id=3 --project_id=2
120
+ gitlab project-snippet delete --id=3 --project_id=2
118
121
119
122
# 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"
121
124
122
125
# create a Snippet:
123
- gitlab ProjectSnippet create --project_id=2
126
+ gitlab project-snippet create --project_id=2
124
127
Impossible to create object (Missing attribute(s): title, file_name, code)
125
128
126
129
# 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"
128
131
`````
0 commit comments