summaryrefslogtreecommitdiff
path: root/docs/gl_objects/templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gl_objects/templates.py')
-rw-r--r--docs/gl_objects/templates.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/gl_objects/templates.py b/docs/gl_objects/templates.py
new file mode 100644
index 0000000..1bc97bb
--- /dev/null
+++ b/docs/gl_objects/templates.py
@@ -0,0 +1,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