@@ -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
- gitlabProject list
98
+ gitlabproject 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
- gitlabProject list
111
+ gitlabproject list
109
112
110
113
# get a specific project (id 2):
111
- gitlabProject get --id=2
114
+ gitlabproject get --id=2
112
115
113
116
# get a list of snippets for this project:
114
- gitlabProjectIssue list --project_id=2
117
+ gitlabproject-issue list --project_id=2
115
118
116
119
# delete a Snippet (id 3):
117
- gitlabProjectSnippet delete --id=3 --project_id=2
120
+ gitlabproject-snippet delete --id=3 --project_id=2
118
121
119
122
# update a Snippet:
120
- gitlabProjectSnippet update --id=4 --project_id=2 --code=" My New Code"
123
+ gitlabproject-snippet update --id=4 --project_id=2 --code=" My New Code"
121
124
122
125
# create a Snippet:
123
- gitlabProjectSnippet create --project_id=2
126
+ gitlabproject-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
- gitlabProjectSnippet create --project_id=2 --title=" the title" --file_name=" the name" --code=" the code"
130
+ gitlabproject-snippet create --project_id=2 --title=" the title" --file_name=" the name" --code=" the code"
128
131
`````