X Tutup
Skip to content

Latest commit

 

History

History
144 lines (96 loc) · 2.74 KB

File metadata and controls

144 lines (96 loc) · 2.74 KB

Templates

You can request templates for different type of files:

  • License files
  • .gitignore files
  • GitLab CI configuration files
  • Dockerfiles

License templates

Reference

Examples

List known license templates:

.. literalinclude:: templates.py
   :start-after: # license list
   :end-before: # end license list

Generate a license content for a project:

.. literalinclude:: templates.py
   :start-after: # license get
   :end-before: # end license get

.gitignore templates

Reference

Examples

List known gitignore templates:

.. literalinclude:: templates.py
   :start-after: # gitignore list
   :end-before: # end gitignore list

Get a gitignore template:

.. literalinclude:: templates.py
   :start-after: # gitignore get
   :end-before: # end gitignore get

GitLab CI templates

Reference

Examples

List known GitLab CI templates:

.. literalinclude:: templates.py
   :start-after: # gitlabciyml list
   :end-before: # end gitlabciyml list

Get a GitLab CI template:

.. literalinclude:: templates.py
   :start-after: # gitlabciyml get
   :end-before: # end gitlabciyml get

Dockerfile templates

Reference

Examples

List known Dockerfile templates:

.. literalinclude:: templates.py
   :start-after: # dockerfile list
   :end-before: # end dockerfile list

Get a Dockerfile template:

.. literalinclude:: templates.py
   :start-after: # dockerfile get
   :end-before: # end dockerfile get
X Tutup