summaryrefslogtreecommitdiff
path: root/docs/gl_objects/templates.py
blob: 1bc97bb8f283e070384eb617541373df31afeac6 (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
# 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