How to use the mirage.template.readme_md.src function in mirage

To help you get started, we’ve selected a few mirage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shotastage / mirage-django-lts / mirage / projectstartup / abstract_flow.py View on Github external
def _create_docs(self, author, description, license_name):

        with open("README.md", "a") as readme:
            readme.write(readme_md.src(self._project_name, description))

        with open("LICENSE", "w") as doc:
            if [doc for doc in ["mit", "MIT"] if doc in license_name]:
                doc.write(licenses.mit.src(self._get_current, author))

            elif [doc for doc in ["agpl", "AGPL", "AGPLv3"] if doc in license_name]:
                doc.write(licenses.agpl_v3.src(self._get_current, author))

            elif [doc for doc in ["apache", "Apache", "Apache2"] if doc in license_name]:
                doc.write(licenses.apache_v2.src(self._get_current, author))

            elif [doc for doc in ["gpl", "GPL", "GPLv3"] if doc in license_name]:
                doc.write(licenses.gpl_v3.src(self._get_current, author))

            elif [doc for doc in ["lgpl", "LGPL", "LGPLv3"] if doc in license_name]:
                doc.write(licenses.lgpl_v3.src(self._get_current, author))
github shotastage / mirage-django-lts / mirage / projectstartup / django_app_create.py View on Github external
def _create_docs(self, description):
        with open("README.md", "a") as readme:
            readme.write(readme_md.src(self._project_name, description))
github shotastage / mirage-django-lts / mirage / projectstartup / react_app_create.py View on Github external
def _create_docs(self, author, description, license_name):

        with open("README.md", "a") as readme:
            readme.write(readme_md.src(self._project_name, description))
github shotastage / mirage-django-lts / mirage / projectstartup / angular_app_create.py View on Github external
def _create_docs(self, author, description, license_name):

        with open("README.md", "a") as readme:
            readme.write(readme_md.src(self._project_name, description))
github shotastage / mirage-django-lts / mirage / projectstartup / minimum_app_create.py View on Github external
def _create_docs(self):
        with open("README.md", "a") as readme:
            readme.write(readme_md.src(self._project_name))
github shotastage / mirage-django-lts / mirage / projectstartup / start_base.py View on Github external
def _create_docs(self, author, description, license_name):

        with open("README.md", "a") as readme:
            readme.write(readme_md.src(self._project_name, description))