blob: 0874dc724c9251cd2cfd5450ca8d3446fe91775c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# license list
licenses = gl.licenses.list()
# end license list
# license get
license = gl.licenses.get('apache-2.0', project='foobar', fullname='John Doe')
print(license.content)
# end license get
# gitignore list
gitignores = gl.gitignores.list()
# end gitignore list
# gitignore get
gitignore = gl.gitignores.get('Python')
print(gitignore.content)
# end gitignore get
# gitlabciyml list
gitlabciymls = gl.gitlabciymls.list()
# end gitlabciyml list
# gitlabciyml get
gitlabciyml = gl.gitlabciymls.get('Pelican')
print(gitlabciyml.content)
# end gitlabciyml get
# dockerfile list
dockerfiles = gl.dockerfiles.list()
# end dockerfile list
# dockerfile get
dockerfile = gl.dockerfiles.get('Python')
print(dockerfile.content)
# end dockerfile get
|