[
  {
    "path": ".gitattributes",
    "content": "* eol=lf\n*.png -text\n"
  },
  {
    "path": ".github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": ".github/workflows/CI.yml",
    "content": "name: CI\n# Run on master, tags, or any pull request\non:\n  schedule:\n    - cron: '0 2 * * *'  # Daily at 2 AM UTC (8 PM CST)\n  push:\n    branches: [master]\n    tags: [\"*\"]\n  pull_request:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - \"1.0\"  # LTS\n          - \"1.7\" # interactive tests require <= 1.8\n          - \"1\"    # Latest Release\n        os:\n          - ubuntu-latest\n          - macOS-latest\n          - windows-latest\n        arch:\n          - x64\n          - x86\n        exclude:\n          # Test 32-bit only on Linux\n          - os: macOS-latest\n            arch: x86\n          - os: windows-latest\n            arch: x86\n        include:\n          # Add specific version used to run the reference tests.\n          # Must be kept in sync with version check in `test/runtests.jl`,\n          # and with the branch protection rules on the repository which\n          # require this specific job to pass on all PRs\n          # (see Settings > Branches > Branch protection rules).\n          - os: ubuntu-latest\n            version: 1.10.6\n            arch: x64\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: actions/cache@v5\n        env:\n          cache-name: cache-artifacts\n        with:\n          path: ~/.julia/artifacts\n          key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}\n          restore-keys: |\n            ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-\n            ${{ runner.os }}-${{ matrix.arch }}-test-\n            ${{ runner.os }}-${{ matrix.arch }}-\n            ${{ runner.os }}-\n      - uses: julia-actions/julia-buildpkg@latest\n      - run: |\n          git config --global user.name Tester\n          git config --global user.email te@st.er\n      - uses: julia-actions/julia-runtest@latest\n      - uses: julia-actions/julia-processcoverage@v1\n      - uses: codecov/codecov-action@v5\n        with:\n          files: lcov.info\n          token: ${{ secrets.CODECOV_TOKEN }}\n          fail_ci_if_error: false\n\n  docs:\n    name: Documentation\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: '1'\n      - run: |\n          git config --global user.name name\n          git config --global user.email email\n          git config --global github.user username\n      - run: |\n          julia --project=docs -e '\n            using Pkg\n            Pkg.develop(PackageSpec(path=pwd()))\n            Pkg.instantiate()'\n      - run: |\n          julia --project=docs -e '\n            using Documenter: doctest\n            using PkgTemplates\n            doctest(PkgTemplates)'\n      - run: julia --project=docs docs/make.jl\n        env:\n          JULIA_PKG_SERVER: \"\"\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": ".github/workflows/JuliaNightly.yml",
    "content": "name: JuliaNightly\n# Nightly Scheduled Julia Nightly Run\non:\n  schedule:\n    - cron: '0 2 * * *'  # Daily at 2 AM UTC (8 PM CST)\njobs:\n  test:\n    name: Julia Nightly - Ubuntu - x64\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: nightly\n          arch: x64\n      - uses: actions/cache@v5\n        env:\n          cache-name: julia-nightly-cache-artifacts\n        with:\n          path: ~/.julia/artifacts\n          key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}\n          restore-keys: |\n            ${{ env.cache-name }}-\n      - uses: julia-actions/julia-buildpkg@latest\n      - run: |\n          git config --global user.name Tester\n          git config --global user.email te@st.er\n      - uses: julia-actions/julia-runtest@latest\n      - uses: julia-actions/julia-processcoverage@v1\n      - uses: codecov/codecov-action@v5\n        with:\n          files: lcov.info\n"
  },
  {
    "path": ".github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          ssh: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": ".gitignore",
    "content": "/docs/build/\n*.jl.*.cov\n*.jl.cov\n*.jl.mem\n/Manifest*.toml\n/test/fixtures/*/test/Manifest*.toml\n/docs/Manifest*.toml\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2017-2020 Chris de Graaf, Invenia Technical Computing Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "Project.toml",
    "content": "name = \"PkgTemplates\"\nuuid = \"14b8a8f1-9102-5b29-a752-f990bacb7fe1\"\nauthors = [\"Chris de Graaf\", \"Invenia Technical Computing Corporation\"]\nversion = \"0.7.61\"\n\n[deps]\nDates = \"ade2ca70-3891-5945-98fb-dc099432e06a\"\nInteractiveUtils = \"b77e0a4c-d291-57a0-90e8-8db25a27a240\"\nLibGit2 = \"76f85450-5226-5b5a-8eaa-529ad045b433\"\nMocking = \"78c3b35d-d492-501b-9361-3d52fe80e533\"\nMustache = \"ffc61752-8dc7-55ee-8c37-f3e9cdd09e70\"\nParameters = \"d96e819e-fc66-5662-9728-84c9c7592b0a\"\nPkg = \"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\"\nREPL = \"3fa0cd96-eef1-5676-8a61-b3b8758bbffb\"\nUUIDs = \"cf7118a7-6976-5b1a-9a39-7adc72f591a4\"\n\n[compat]\nDates = \"<0.0.1, 1\"\nInteractiveUtils = \"<0.0.1, 1\"\nLibGit2 = \"<0.0.1, 1\"\nMocking = \"0.7, 0.8\"\nMustache = \"1\"\nParameters = \"0.12\"\nPkg = \"<0.0.1, 1\"\nREPL = \"<0.0.1, 1\"\nUUIDs = \"<0.0.1, 1\"\njulia = \"1\"\n\n[extras]\nDeepDiffs = \"ab62b9b5-e342-54a8-a765-a90f495de1a6\"\nRandom = \"9a3f8284-a2c9-5f02-9a11-845980a1fd5c\"\nSuppressor = \"fd094767-a336-5f1f-9728-57cf17d0bbfb\"\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[targets]\ntest = [\"DeepDiffs\", \"Random\", \"Suppressor\", \"Test\"]\n"
  },
  {
    "path": "README.md",
    "content": "# PkgTemplates\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaci.github.io/PkgTemplates.jl/stable)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliaci.github.io/PkgTemplates.jl/dev)\n[![CI](https://github.com/JuliaCI/PkgTemplates.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/JuliaCI/PkgTemplates.jl/actions/workflows/CI.yml?query=branch%3Amaster)\n[![Codecov](https://codecov.io/gh/JuliaCI/PkgTemplates.jl/branch/master/graph/badge.svg?token=WsGRSymBmZ)](https://codecov.io/gh/JuliaCI/PkgTemplates.jl)\n[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)\n[![ColPrac: Contributor Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor%20Guide-blueviolet)](https://github.com/SciML/ColPrac)\n\n**PkgTemplates creates new Julia packages in an easy, repeatable, and customizable way.**\n\n## Installation\n\nInstall with the Julia package manager [Pkg](https://pkgdocs.julialang.org/), just like any other registered Julia package:\n\n```julia\npkg> add PkgTemplates  # Press ']' to enter the Pkg REPL mode.\n```\nor\n```julia\njulia> using Pkg; Pkg.add(\"PkgTemplates\")\n```\n\n## Usage\n\n### Interactive Generation\n\nYou can fully customize your package interactively with:\n\n```julia\nusing PkgTemplates\nTemplate(interactive=true)(\"MyPkg\")\n```\n\nThis will prompt you to select options, displaying the default settings in parentheses.\n\n### Manual creation\n\nCreating a `Template` is as simple as:\n\n```julia\nusing PkgTemplates\ntpl = Template()\n```\n\nThe no-keywords constructor assumes the existence of some preexisting Git configuration (show configuration using `git config --list` and set with `git config --global`):\n\n- `user.name`: Your real name, e.g. John Smith.\n- `user.email`: Your email address, eg. john.smith@acme.corp.\n- `github.user`: Your GitHub username: e.g. john-smith.\n\nOnce you have a `Template`, use it to generate a package:\n\n```julia\ntpl(\"MyPkg\")\n```\n\nHowever, it's probably desirable to customize the template to your liking with various options and plugins:\n\n```julia\nusing PkgTemplates\ntpl = Template(;\n    dir=\"~/code\",\n    plugins=[\n        Git(; manifest=true, ssh=true),\n        GitHubActions(; x86=true),\n        Codecov(),\n        Documenter{GitHubActions}(),\n    ],\n)\n```\n\n---\n\nFor a much more detailed overview, please see [the User Guide documentation](https://juliaci.github.io/PkgTemplates.jl/stable/user/).\n\n## Contributing\n\nIssues and pull requests are welcome!\nNew contributors should make sure to read the [ColPrac Contributor Guide](https://github.com/SciML/ColPrac).\nFor some more PkgTemplates-specific tips, see the [Developer Guide documentation](https://juliaci.github.io/PkgTemplates.jl/stable/developer/).\n"
  },
  {
    "path": "docs/Project.toml",
    "content": "[deps]\nDocumenter = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\nPkgTemplates = \"14b8a8f1-9102-5b29-a752-f990bacb7fe1\"\n\n[compat]\nDocumenter = \"1\"\n"
  },
  {
    "path": "docs/make.jl",
    "content": "using Documenter: Documenter, makedocs, deploydocs\nusing PkgTemplates: PkgTemplates\n\nmakedocs(;\n    modules=[PkgTemplates],\n    authors=\"Chris de Graaf, Invenia Technical Computing Corporation\",\n    sitename=\"PkgTemplates.jl\",\n    format=Documenter.HTML(;\n        repolink=\"https://github.com/JuliaCI/PkgTemplates.jl\",\n        canonical=\"https://juliaci.github.io/PkgTemplates.jl\",\n        assets=String[],\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n        \"User Guide\" => \"user.md\",\n        \"Developer Guide\" => \"developer.md\",\n        \"Migrating To PkgTemplates 0.7+\" => \"migrating.md\",\n    ],\n)\n\ndeploydocs(;\n    repo=\"github.com/JuliaCI/PkgTemplates.jl\",\n)\n"
  },
  {
    "path": "docs/src/developer.md",
    "content": "```@meta\nCurrentModule = PkgTemplates\n```\n\n# PkgTemplates Developer Guide\n\n```@contents\nPages = [\"developer.md\"]\n```\n\nIssues and pull requests are welcome!\nNew contributors should make sure to read the [ColPrac Contributor Guide](https://github.com/SciML/ColPrac).\n\n[PkgTemplates](https://github.com/JuliaCI/PkgTemplates.jl/) can be easily extended by adding new [`Plugin`](@ref)s.\n\nThere are three types of plugins: [`Plugin`](@ref), [`FilePlugin`](@ref), and [`BadgePlugin`](@ref).\n\n```@docs\nPlugin\nFilePlugin\nBadgePlugin\n```\n\n## Template + Package Creation Pipeline\n\nThe [`Template`](@ref) constructor basically does this:\n\n```\n- extract values from keyword arguments\n- create a Template from the values\n- for each plugin:\n  - validate plugin against the template\n```\n\nThe plugin validation step uses the [`validate`](@ref) function.\nIt lets us catch mistakes before we try to generate packages.\n\n```@docs\nvalidate\n```\n\nThe package generation process looks like this:\n\n```\n- create empty directory for the package\n- for each plugin, ordered by priority:\n  - run plugin prehook\n- for each plugin, ordered by priority:\n  - run plugin hook\n- for each plugin, ordered by priority:\n  - run plugin posthook\n```\n\nAs you can tell, plugins play a central role in setting up a package.\n\nThe three main entrypoints for plugins to do work are the [`prehook`](@ref), the [`hook`](@ref), and the [`posthook`](@ref).\nAs the names might imply, they basically mean \"before the main stage\", \"the main stage\", and \"after the main stage\", respectively.\n\nEach stage is basically identical, since the functions take the exact same arguments.\nHowever, the multiple stages allow us to depend on artifacts of the previous stages.\nFor example, the [`Git`](@ref) plugin uses [`posthook`](@ref) to commit all generated files, but it wouldn't make sense to do that before the files are generated.\n\nBut what about dependencies within the same stage?\nIn this case, we have [`priority`](@ref) to define which plugins go when.\nThe [`Git`](@ref) plugin also uses this function to lower its posthook's priority, so that even if other plugins generate files in their posthooks, they still get committed (provided that those plugins didn't set an even lower priority).\n\n```@docs\nprehook\nhook\nposthook\npriority\n```\n\n## `Plugin` Walkthrough\n\nConcrete types that subtype [`Plugin`](@ref) directly are free to do almost anything.\nTo understand how they're implemented, let's look at simplified versions of two plugins: [`Documenter`](@ref) to explore templating, and [`Git`](@ref) to further clarify the multi-stage pipeline.\n\n### Example: `Documenter`\n\n```julia\n@plugin struct Documenter <: Plugin\n    make_jl::String = default_file(\"docs\", \"make.jlt\")\n    index_md::String = default_file(\"docs\", \"src\", \"index.md\")\nend\n\ngitignore(::Documenter) = [\"/docs/build/\"]\n\nbadges(::Documenter) = [\n    Badge(\n        \"Stable\",\n        \"https://img.shields.io/badge/docs-stable-blue.svg\",\n        \"https://{{{USER}}}.github.io/{{{PKG}}}.jl/stable\",\n    ),\n    Badge(\n        \"Dev\",\n        \"https://img.shields.io/badge/docs-dev-blue.svg\",\n        \"https://{{{USER}}}.github.io/{{{PKG}}}.jl/dev\",\n    ),\n]\n\nview(p::Documenter, t::Template, pkg::AbstractString) = Dict(\n    \"AUTHORS\" => join(t.authors, \", \"),\n    \"PKG\" => pkg,\n    \"REPO\" => \"$(t.host)/$(t.user)/$pkg.jl\",\n    \"USER\" => t.user,\n)\n\nfunction hook(p::Documenter, t::Template, pkg_dir::AbstractString)\n    pkg = pkg_name(pkg_dir)\n    docs_dir = joinpath(pkg_dir, \"docs\")\n\n    make = render_file(p.make_jl, combined_view(p, t, pkg), tags(p))\n    gen_file(joinpath(docs_dir, \"make.jl\"), make)\n\n    index = render_file(p.index_md, combined_view(p, t, pkg), tags(p))\n    gen_file(joinpath(docs_dir, \"src\", \"index.md\"), index)\n\n    # What this function does is not relevant here.\n    create_documentation_project()\nend\n```\n\nThe `@plugin` macro defines some helpful methods for us.\nInside of our struct definition, we're using [`default_file`](@ref) to refer to files in this repository.\n\n```@docs\n@plugin\ndefault_file\n```\n\nThe first method we implement for `Documenter` is [`gitignore`](@ref), so that packages created with this plugin ignore documentation build artifacts.\n\n```@docs\ngitignore\n```\n\nSecond, we implement [`badges`](@ref) to add a couple of badges to new packages' README files.\n\n```@docs\nbadges\nBadge\n```\n\nThese two functions, [`gitignore`](@ref) and [`badges`](@ref), are currently the only \"special\" functions for cross-plugin interactions.\nIn other cases, you can still access the [`Template`](@ref)'s plugins to depend on the presence/properties of other plugins via [`getplugin`](@ref), although that's less powerful.\n\n```@docs\ngetplugin\n```\n\nThird, we implement [`view`](@ref), which is used to fill placeholders in badges and rendered files.\n\n```@docs\nview\n```\n\nFinally, we implement [`hook`](@ref), which is the real workhorse for the plugin.\nInside of this function, we generate a couple of files with the help of a few more text templating functions.\n\n```@docs\nrender_file\nrender_text\ngen_file\ncombined_view\ntags\npkg_name\n```\n\nFor more information on text templating, see the [`FilePlugin` Walkthrough](@ref) and the section on [Custom Template Files](@ref).\n\n### Example: `Git`\n\n```julia\nstruct Git <: Plugin end\n\npriority(::Git, ::typeof(posthook)) = 5\n\nfunction validate(::Git, ::Template)\n    foreach((\"user.name\", \"user.email\")) do k\n        if isempty(LibGit2.getconfig(k, \"\"))\n            throw(ArgumentError(\"Git: Global Git config is missing required value '$k'\"))\n        end\n    end\nend\n\nfunction prehook(::Git, t::Template, pkg_dir::AbstractString)\n    LibGit2.with(LibGit2.init(pkg_dir)) do repo\n        LibGit2.commit(repo, \"Initial commit\")\n        pkg = pkg_name(pkg_dir)\n        url = \"https://$(t.host)/$(t.user)/$pkg.jl\"\n        close(GitRemote(repo, \"origin\", url))\n    end\nend\n\nfunction hook(::Git, t::Template, pkg_dir::AbstractString)\n    ignore = mapreduce(gitignore, append!, t.plugins)\n    unique!(sort!(ignore))\n    gen_file(joinpath(pkg_dir, \".gitignore\"), join(ignore, \"\\n\"))\nend\n\nfunction posthook(::Git, ::Template, pkg_dir::AbstractString)\n    LibGit2.with(GitRepo(pkg_dir)) do repo\n        LibGit2.add!(repo, \".\")\n        LibGit2.commit(repo, \"Files generated by PkgTemplates\")\n    end\nend\n```\n\nWe didn't use `@plugin` for this one, because there are no fields.\nValidation and all three hooks are implemented:\n\n- [`validate`](@ref) makes sure that all required Git configuration is present.\n- [`prehook`](@ref) creates the Git repository for the package.\n- [`hook`](@ref) generates the `.gitignore` file, using the special [`gitignore`](@ref) function.\n- [`posthook`](@ref) adds and commits all the generated files.\n\nAs previously mentioned, we use [`priority`](@ref) to make sure that we wait until all other plugins are finished their work before committing files.\n\nHopefully, this demonstrates the level of control you have over the package generation process when developing plugins, and when it makes sense to exercise that power!\n\n## `FilePlugin` Walkthrough\n\nMost of the time, you don't really need all of the control that we showed off above.\nPlugins that subtype [`FilePlugin`](@ref) perform a much more limited task.\nIn general, they just generate one templated file.\n\nTo illustrate, let's look at the [`Citation`](@ref) plugin, which creates a `CITATION.bib` file.\n\n```julia\n@plugin struct Citation <: FilePlugin\n    file::String = default_file(\"CITATION.bib\")\nend\n\nsource(p::Citation) = p.file\ndestination(::Citation) = \"CITATION.bib\"\n\ntags(::Citation) = \"<<\", \">>\"\n\nview(::Citation, t::Template, pkg::AbstractString) = Dict(\n    \"AUTHORS\" => join(t.authors, \", \"),\n    \"MONTH\" => month(today()),\n    \"PKG\" => pkg,\n    \"URL\" => \"https://$(t.host)/$(t.user)/$pkg.jl\",\n    \"YEAR\" => year(today()),\n)\n```\n\nSimilar to the `Documenter` example above, we're defining a keyword constructor, and assigning a default template file from this repository.\nThis plugin adds nothing to `.gitignore`, and it doesn't add any badges, so implementations for [`gitignore`](@ref) and [`badges`](@ref) are omitted.\n\nFirst, we implement [`source`](@ref) and [`destination`](@ref) to define where the template file comes from, and where it goes.\nThese functions are specific to [`FilePlugin`](@ref)s, and have no effect on regular [`Plugin`](@ref)s by default.\n\n```@docs\nsource\ndestination\n```\n\nNext, we implement [`tags`](@ref).\nWe briefly saw this function earlier, but in this case it's necessary to change its behaviour from the default.\nTo see why, it might help to see the template file in its entirety:\n\n```\n@misc{<<&PKG>>.jl,\n\tauthor  = {<<&AUTHORS>>},\n\ttitle   = {<<&PKG>>.jl},\n\turl     = {<<&URL>>},\n\tversion = {v0.1.0},\n\tyear    = {<<&YEAR>>},\n\tmonth   = {<<&MONTH>>}\n}\n```\n\nBecause the file contains its own `{}` delimiters, we need to use different ones for templating to work properly.\n\nFinally, we implement [`view`](@ref) to fill in the placeholders that we saw in the template file.\n\n## Doing Extra Work With `FilePlugin`s\n\nNotice that we didn't have to implement [`hook`](@ref) for our plugin.\nIt's implemented for all [`FilePlugin`](@ref)s, like so:\n\n```julia\nfunction render_plugin(p::FilePlugin, t::Template, pkg::AbstractString)\n    return render_file(source(p), combined_view(p, t, pkg), tags(p))\nend\n\nfunction hook(p::FilePlugin, t::Template, pkg_dir::AbstractString)\n    source(p) === nothing && return\n    pkg = pkg_name(pkg_dir)\n    path = joinpath(pkg_dir, destination(p))\n    text = render_plugin(p, t, pkg)\n    gen_file(path, text)\nend\n```\n\nBut what if we want to do a little more than just generate one file?\n\nA good example of this is the [`Tests`](@ref) plugin.\nIt creates `runtests.jl`, but it also modifies the `Project.toml` to include the `Test` dependency.\n\nOf course, we could use a normal [`Plugin`](@ref), but it turns out there's a way to avoid that while still getting the extra capbilities that we want.\n\nThe plugin implements its own `hook`, but uses `invoke` to avoid duplicating the file creation code:\n\n```julia\n@plugin struct Tests <: FilePlugin\n    file::String = default_file(\"runtests.jlt\")\nend\n\nsource(p::Tests) = p.file\ndestination(::Tests) = joinpath(\"test\", \"runtests.jl\")\nview(::Tests, ::Template, pkg::AbstractString) = Dict(\"PKG\" => pkg)\n\nfunction hook(p::Tests, t::Template, pkg_dir::AbstractString)\n    # Do the normal FilePlugin behaviour to create the test script.\n    invoke(hook, Tuple{FilePlugin, Template, AbstractString}, p, t, pkg_dir)\n    # Do some other work.\n    add_test_dependency()\nend\n```\n\nThere is also a default [`validate`](@ref) implementation for [`FilePlugin`](@ref)s, which checks that the plugin's [`source`](@ref) file exists, and throws an `ArgumentError` otherwise.\nIf you want to extend the validation but keep the file existence check, use the `invoke` method as described above.\n\nFor more examples, see the plugins in the [Continuous Integration (CI)](@ref) and [Code Coverage](@ref) sections.\n\n## Supporting Interactive Mode\n\nWhen it comes to supporting interactive mode for your custom plugins, you have two options: write your own [`interactive`](@ref) method, or use the default one.\nIf you choose the first option, then you are free to implement the method however you want.\nIf you want to use the default implementation, then there are a few functions that you should be aware of, although in many cases you will not need to add any new methods.\n\n```@docs\ninteractive\nprompt\ncustomizable\ninput_tips\nconvert_input\n```\n\n## Miscellaneous Tips\n\n### Writing Template Files\n\nFor an overview of writing template files for Mustache.jl, see [Custom Template Files](@ref) in the user guide.\n\n### Predicates\n\nThere are a few predicate functions for plugins that are occasionally used to answer questions like \"does this `Template` have any code coverage plugins?\".\nIf you're implementing a plugin that fits into one of the following categories, it would be wise to implement the corresponding predicate function to return `true` for instances of your type.\n\n```@docs\nneeds_username\nis_ci\nis_coverage\n```\n\n### Formatting Version Numbers\n\nWhen writing configuration files for CI services, working with version numbers is often needed.\nThere are a few convenience functions that can be used to make this a little bit easier.\n\n```@docs\ncompat_version\nformat_version\ncollect_versions\n```\n\n## Testing\n\nIf you write a cool new plugin that could be useful to other people, or find and fix a bug, you're encouraged to open a pull request with your changes.\nHere are some testing tips to ensure that your PR goes through as smoothly as possible.\n\n### Updating Reference Tests & Fixtures\n\nIf you've added or modified plugins, you should update the reference tests and the associated test fixtures.\nIn `test/reference.jl`, you'll find a \"Reference tests\" test set that basically generates a bunch of packages, and then checks each file against a reference file, which is stored somewhere in `test/fixtures`.\nNote the reference tests only run on one specific version of Julia; check `test/runtests.jl` to see the current version used.\n\nFor new plugins, you should add an instance of your plugin to the \"All plugins\" and \"Wacky options\" test sets, then run the tests with `Pkg.test`.\nThey should pass, and there will be new files in `test/fixtures`.\nCheck them to make sure that they contain exactly what you would expect!\n\nFor changes to existing plugins, update the plugin options appropriately in the \"Wacky options\" test set.\nFailing tests  will give you the option to review and accept changes to the fixtures, updating the files automatically for you.\n\n### Running reference tests locally\n\nIn the file `test/runtests.jl`, there is a variable called `REFERENCE_JULIA_VERSION`, currently set to `v\"1.7.2\"`.\nIf you use any other Julia version (even the latest stable one) to launch the test suite, the reference tests mentioned above will not run, and you will miss a crucial correctness check for your code.\nTherefore, we strongly suggest you test PkgTemplates locally against Julia 1.7.2.\nThis version can be easily installed and started with [juliaup](https://github.com/JuliaLang/juliaup):\n\n```bash\njuliaup add 1.7.2\njulia +1.7.2\n```\n\n### Updating \"Show\" Tests\n\nDepending on what you've changed, the tests in `test/show.jl` might fail.\nTo fix those, you'll need to update the `expected` value to match what is actually displayed in a Julia REPL (assuming that the new value is correct).\n"
  },
  {
    "path": "docs/src/index.md",
    "content": "```@meta\nCurrentModule = PkgTemplates\n```\n\n# PkgTemplates\n\n**[PkgTemplates](https://github.com/JuliaCI/PkgTemplates.jl/) creates new Julia packages in an easy, repeatable, and customizable way.**\n\n## Documentation\n\nIf you're looking to **create new packages**, see the [User Guide](user.md).\n\nIf you want to **create new plugins**, see the [Developer Guide](developer.md).\n\nif you're trying to **migrate from an older version of PkgTemplates**, see [Migrating To PkgTemplates 0.7+](migrating.md).\n\n```@docs\nPkgTemplates\n```\n\n## Index\n\n```@index\n```\n"
  },
  {
    "path": "docs/src/migrating.md",
    "content": "```@meta\nCurrentModule = PkgTemplates\n```\n\n# Migrating To PkgTemplates 0.7+\n\nPkgTemplates 0.7 is a ground-up rewrite of the package with similar functionality but with updated APIs and internals.\nHere is a summary of things that existed in older versions but have been moved elsewhere or removed.\nHowever, it might be easier to just read the [User Guide](user.md).\n\n## Template keywords\n\nThe recurring theme is \"everything is a plugin now\".\n\n| Old                  | New                               |\n| :------------------: | :-------------------------------: |\n| `license=\"ISC\"`      | `plugins=[License(; name=\"ISC\")]` |\n| `develop=true` *     | `plugins=[Develop()]`             |\n| `git=false`          | `plugins=[!Git]`                  |\n| `julia_version=v\"1\"` | `julia=v\"1\"`                      |\n| `ssh=true`           | `plugins=[Git(; ssh=true)]`       |\n| `manifest=true`      | `plugins=[Git(; manifest=true)]`  |\n\n\\* `develop=true` was the default setting, but it is no longer the default in PkgTemplates 0.7+.\n\n## Plugins\n\nAside from renamings, basically every plugin has had their constructors reworked.\nSo if you are using anything non-default, you should consult the new docstring.\n\n| Old           | New                    |\n| :-----------: | :--------------------: |\n| `GitHubPages` | `Documenter{TravisCI}` |\n| `GitLabPages` | `Documenter{GitLabCI}` |\n\n## Package Generation\n\nOne less name to remember!\n\n| Old                                         | New                                 |\n| :-----------------------------------------: | :---------------------------------: |\n| `generate(::Template, pkg::AbstractString)` | `(::Template)(pkg::AbstractString)` |\n\n## Interactive Mode\n\n| Old                                         | New                                 |\n| :-----------------------------------------: | :---------------------------------: |\n| `interactive_template()`                    | `Template(; interactive=true)`      |\n| `generate_interactive(pkg::AbstractString)` | `Template(; interactive=true)(pkg)` |\n\n## Other Functions\n\nTwo less names to remember!\nAlthough it's unlikely that anyone used these.\n\n| Old                  | New                                                                                                  |\n| :------------------: | :--------------------------------------------------------------------------------------------------: |\n| `available_licenses` | [View licenses on GitHub](https://github.com/JuliaCI/PkgTemplates.jl/tree/master/templates/licenses) |\n| `show_license`       | [View licenses on GitHub](https://github.com/JuliaCI/PkgTemplates.jl/tree/master/templates/licenses) |\n\n## Custom Plugins\n\nIn addition to the changes in usage, custom plugins from older versions of PkgTemplates will not work in 0.7+.\nSee the [Developer Guide](developer.md) for more information on the new extension API.\n"
  },
  {
    "path": "docs/src/user.md",
    "content": "```@meta\nCurrentModule = PkgTemplates\n```\n\n# PkgTemplates User Guide\n\n```@contents\nPages = [\"user.md\"]\n```\n\nUsing [PkgTemplates](https://github.com/JuliaCI/PkgTemplates.jl/) is straightforward.\nJust create a [`Template`](@ref), and call it on a package name to generate that package:\n\n```julia\nusing PkgTemplates\nt = Template()\nt(\"MyPkg\")\n```\n\n## Template\n\n```@docs\nTemplate\ngenerate\n```\n\n## Plugins\n\nPlugins add functionality to `Template`s.\nThere are a number of plugins available to automate common boilerplate tasks.\n\n### Default Plugins\n\nThese plugins are included by default.\nThey can be overridden by supplying another value, or disabled by negating the type (`!Type`), both as elements of the `plugins` keyword.\n\n```@docs\nProjectFile\nSrcDir\nTests\nReadme\nLicense\nGit\nGitHubActions\nDependabot\nTagBot\nSecret\n```\n\n### Continuous Integration (CI)\n\nThese plugins will create the configuration files of common CI services for you.\n\n```@docs\nAppVeyor\nCirrusCI\nDroneCI\nGitLabCI\nTravisCI\n```\n\n### Code Coverage\n\nThese plugins will enable code coverage reporting from CI.\n\n```@docs\nCodecov\nCoveralls\n```\n\n### Documentation\n\nThese plugins will help you build a documentation website.\n\n```@docs\nDocumenter\nLogo\n```\n\n### Badges\n\nThese plugins will add badges to the README.\n\n```@docs\nBlueStyleBadge\nColPracBadge\nPkgEvalBadge\n```\n\n### Miscellaneous\n\n```@docs\nDevelop\nCitation\nRegisterAction\nFormatter\nCodeOwners\nPkgBenchmark\nCompatHelper\n```\n\n## A More Complicated Example\n\nHere are a few example templates that use the options and plugins explained above.\n\nThis one includes plugins suitable for a project hosted on GitHub, and some other customizations:\n\n```julia\nTemplate(;\n    user=\"my-username\",\n    dir=\"~/code\",\n    authors=\"Acme Corp\",\n    julia=v\"1.1\",\n    plugins=[\n        License(; name=\"MPL-2.0\"),\n        Git(; manifest=true, ssh=true),\n        GitHubActions(; x86=true),\n        Codecov(),\n        Documenter{GitHubActions}(),\n        Develop(),\n    ],\n)\n```\n\nHere's one that works well for projects hosted on GitLab:\n\n```julia\nTemplate(;\n    user=\"my-username\",\n    host=\"gitlab.com\",\n    plugins=[\n        GitLabCI(),\n        Documenter{GitLabCI}(),\n    ],\n)\n```\n\n## Custom Template Files\n\n!!! note \"Templates vs Templating\"\n    This documentation refers plenty to [`Template`](@ref)s, the package's main type, but it also refers to \"template files\" and \"text templating\", which are plaintext files with placeholders to be filled with data, and the technique of filling those placeholders with data, respectively.\n\n    These concepts should be familiar if you've used [Jinja](https://palletsprojects.com/p/jinja) or [Mustache](https://mustache.github.io) (Mustache is the particular flavour used by PkgTemplates, via [Mustache.jl](https://github.com/jverzani/Mustache.jl)).\n    Please keep the difference between these two things in mind!\n\nMany plugins support a `file` argument or similar, which sets the path to the template file to be used for generating files.\nEach plugin has a sensible default that should make sense for most people, but you might have a specialized workflow that requires a totally different template file.\n\nIf that's the case, a basic understanding of [Mustache](https://mustache.github.io)'s syntax is required.\nHere's an example template file:\n\n```\nHello, {{{name}}}.\n\n{{#weather}}\nIt's {{{weather}}} outside.\n{{/weather}}\n{{^weather}}\nI don't know what the weather outside is.\n{{/weather}}\n\n{{#has_things}}\nI have the following things:\n{{/has_things}}\n{{#things}}\n- Here's a thing: {{{.}}}\n{{/things}}\n\n{{#people}}\n- {{{name}}} is {{{mood}}}\n{{/people}}\n```\n\nIn the first section, `name` is a key, and its value replaces `{{{name}}}`.\n\nIn the second section, `weather`'s value may or may not exist.\nIf it does exist, then \"It's \\$weather outside\" is printed.\nOtherwise, \"I don't know what the weather outside is\" is printed.\nMustache uses a notion of \"truthiness\" similar to Python or JavaScript, where values of `nothing`, `false`, or empty collections are all considered to not exist.\n\nIn the third section, `has_things`' value is printed if it's truthy.\nThen, if the `things` list is truthy (i.e. not empty), its values are each printed on their own line.\nThe reason that we have two separate keys is that `{{#things}}` iterates over the whole `things` list, even when there are no `{{{.}}}` placeholders, which would duplicate \"I have the following things:\" `n` times.\n\nThe fourth section iterates over the `people` list, but instead of using the `{{{.}}}` placeholder, we have `name` and `mood`, which are keys or fields of the list elements.\nMost types are supported here, including `Dict`s and structs.\n`NamedTuple`s require you to use `{{{:name}}}` instead of the normal `{{{name}}}`, though.\n\nYou might notice that some curlies are in groups of two (`{{key}}`), and some are in groups of three (`{{{key}}}`).\nWhenever we want to subtitute in a value, using the triple curlies disables HTML escaping, which we rarely want for the types of files we're creating.\nIf you do want escaping, just use the double curlies.\nAnd if you're using different delimiters, for example `<<foo>>`, use `<<&foo>>` to disable escaping.\n\nAssuming the following view:\n\n```julia\nstruct Person; name::String; mood::String; end\nthings = [\"a\", \"b\", \"c\"]\nview = Dict(\n    \"name\" => \"Chris\",\n    \"weather\" => \"sunny\",\n    \"has_things\" => !isempty(things),\n    \"things\" => things,\n    \"people\" => [Person(\"John\", \"happy\"), Person(\"Jane\", \"sad\")],\n)\n```\n\nOur example template would produce this:\n\n```\nHello, Chris.\n\nIt's sunny outside.\n\nI have the following things:\n- Here's a thing: a\n- Here's a thing: b\n- Here's a thing: c\n\n- John is happy\n- Jane is sad\n```\n\n## Extending Existing Plugins\n\nMost of the existing plugins generate a file from a template file.\nIf you want to use custom template files, you may run into situations where the data passed into the templating engine is not sufficient.\nIn this case, you can look into implementing [`user_view`](@ref) to supply whatever data is necessary for your use case.\n\n```@docs\nuser_view\n```\n\nFor example, suppose you were using the [`Readme`](@ref) plugin with a custom template file that looked like this:\n\n```md\n# {{PKG}}\n\nCreated on *{{TODAY}}*.\n```\n\nThe [`view`](@ref) function supplies a value for `PKG`, but it does not supply a value for `TODAY`.\nRather than override [`view`](@ref), we can implement this function to get both the default values and whatever else we need to add.\n\n```julia\nuser_view(::Readme, ::Template, ::AbstractString) = Dict(\"TODAY\" => today())\n```\n\n## Saving Templates\n\nOne of the main reasons for PkgTemplates' existence is for new packages to be consistent.\nThis means using the same template more than once, so we want a way to save a template to be used later.\n\nHere's my recommendation for loading a template whenever it's needed:\n\n```julia\nfunction template()\n    @eval begin\n        using PkgTemplates\n        Template(; #= ... =#)\n    end\nend\n```\n\nAdd this to your `startup.jl`, and you can create your template from anywhere, without incurring any startup cost.\n\nAnother strategy is to write the string representation of the template to a Julia file:\n\n```julia\nconst t = Template(; #= ... =#)\nopen(\"template.jl\", \"w\") do io\n    println(io, \"using PkgTemplates\")\n    print(io, t)\nend\n```\n\nThen the template is just an `include` away:\n\n```julia\nconst t = include(\"template.jl\")\n```\n\nThe only disadvantage to this approach is that the saved template is much less human-readable than code you wrote yourself.\n\nOne more method of saving templates is to simply use the Serialization package in the standard library:\n\n```julia\nconst t = Template(; #= ... =#)\nusing Serialization\nopen(io -> serialize(io, t), \"template.bin\", \"w\")\n```\n\nThen simply `deserialize` to load:\n\n```julia\nusing Serialization\nconst t = open(deserialize, \"template.bin\")\n```\n\nThis approach has the same disadvantage as the previous one, and the serialization format is not guaranteed to be stable across Julia versions.\n"
  },
  {
    "path": "src/PkgTemplates.jl",
    "content": "@doc read(joinpath(dirname(@__DIR__), \"README.md\"), String)\nmodule PkgTemplates\n\nusing Base: active_project, contractuser\n\nusing Dates: month, today, year\nusing InteractiveUtils: subtypes\nusing LibGit2: LibGit2, GitConfig, GitReference, GitRemote, GitRepo, delete_branch\nusing Pkg: Pkg, TOML, PackageSpec\nusing REPL.TerminalMenus: MultiSelectMenu, RadioMenu, request\nusing UUIDs: uuid4\n\nusing Mustache: render\nusing Parameters: @with_kw_noshow\n\nusing Mocking\n\nexport\n    Template,\n    AppVeyor,\n    BlueStyleBadge,\n    CirrusCI,\n    Citation,\n    Codecov,\n    CodeOwners,\n    ColPracBadge,\n    CompatHelper,\n    Coveralls,\n    Dependabot,\n    Develop,\n    Documenter,\n    DroneCI,\n    Formatter,\n    Git,\n    GitHubActions,\n    GitLabCI,\n    License,\n    Logo,\n    NoDeploy,\n    PkgBenchmark,\n    PkgEvalBadge,\n    ProjectFile,\n    Readme,\n    RegisterAction,\n    Runic,\n    Secret,\n    SrcDir,\n    TagBot,\n    Tests,\n    TravisCI\n\n\"\"\"\nPlugins are PkgTemplates' source of customization and extensibility.\nAdd plugins to your [`Template`](@ref)s to enable extra pieces of repository setup.\n\nWhen implementing a new plugin, subtype this type to have full control over its behaviour.\n\"\"\"\nabstract type Plugin end\n\ninclude(\"template.jl\")\ninclude(\"plugin.jl\")\ninclude(\"show.jl\")\ninclude(\"interactive.jl\")\ninclude(\"deprecated.jl\")\n\n# Run some function with a project activated at the given path.\nfunction with_project(f::Function, path::AbstractString)\n    proj = active_project()\n    try\n        Pkg.activate(path)\n        f()\n    finally\n        proj === nothing ? Pkg.activate() : Pkg.activate(proj)\n    end\nend\n\nend\n"
  },
  {
    "path": "src/deprecated.jl",
    "content": "@deprecate generate(t::Template, pkg::AbstractString) t(pkg)\n@deprecate generate(pkg::AbstractString, t::Template) t(pkg)\n@deprecate interactive_template() Template(; interactive=true)\n@deprecate generate_interactive(pkg::AbstractString) Template(; interactive=true)(pkg)\n@deprecate GitHubPages(; kwargs...) Documenter{TravisCI}(; kwargs...)\n@deprecate GitLabPages(; kwargs...) Documenter{GitLabCI}(; kwargs...)\n"
  },
  {
    "path": "src/interactive.jl",
    "content": "\"\"\"\n    generate([pkg::AbstractString]) -> Template\n\nShortcut for `Template(; interactive=true)(pkg)`.\nIf no package name is supplied, you will be prompted for one.\n\"\"\"\nfunction generate(pkg::AbstractString=prompt(Template, String, :pkg))\n    t = Template(; interactive=true)\n    t(pkg)\n    return t\nend\n\n\"\"\"\n    interactive(T::Type{<:Plugin}) -> T\n\nInteractively create a plugin of type `T`. Implement this method and ignore other\nrelated functions only if you want completely custom behaviour.\n\"\"\"\nfunction interactive(T::Type)\n    pairs = Vector{Pair{Symbol, Type}}(interactive_pairs(T))\n\n    # There must be at least 2 MultiSelectMenu options.\n    # If there are none, return immediately.\n    # If there's just one, add a \"dummy\" option.\n    isempty(pairs) && return T()\n    just_one = length(pairs) == 1\n    just_one && push!(pairs, :None => Nothing)\n\n    println(\"$(nameof(T)) keywords to customize:\")\n    opts = map(first.(pairs)) do k\n        if k != :None\n            \"$k ($(repr(defaultkw(T, k))))\"\n        else\n            \"$k\"\n        end\n    end\n    menu = MultiSelectMenu(opts; pagesize=length(pairs))\n    customize = sort!(collect(request(menu)))\n\n    # If the \"None\" option was selected, don't customize anything.\n    just_one && lastindex(pairs) in customize && return T()\n\n    kwargs = Dict{Symbol, Any}()\n    foreach(pairs[customize]) do (name, F)\n        kwargs[name] = prompt(T, F, name)\n    end\n    return T(; kwargs...)\nend\n\nstruct NotCustomizable end\n\n\"\"\"\n    customizable(::Type{<:Plugin}) -> Vector{Pair{Symbol, DataType}}\n\nReturn a list of keyword arguments that the given plugin type accepts,\nwhich are not fields of the type, and should be customizable in interactive mode.\nFor example, for a constructor `Foo(; x::Bool)`, provide `[x => Bool]`.\nIf `T` has fields which should not be customizable, use `NotCustomizable` as the type.\n\"\"\"\ncustomizable(::Type) = ()\n\nfunction pretty_message(s::AbstractString)\n    replacements = [\n        r\"Array{(.*?),1}\" => s\"Vector{\\1}\",\n        r\"Union{Nothing, (.*?)}\" => s\"Union{\\1, Nothing}\",\n    ]\n    return reduce((s, p) -> replace(s, p), replacements; init=s)\nend\n\n\"\"\"\n    input_tips(::Type{T}) -> Vector{String}\n\nProvide some extra tips to users on how to structure their input for the type `T`,\nfor example if multiple delimited values are expected.\n\"\"\"\ninput_tips(::Type{Vector{T}}) where T = [input_tips(T)..., \"comma-delimited\"]\ninput_tips(::Type{Union{T, Nothing}}) where T = [input_tips(T)..., input_tips(Nothing)...]\ninput_tips(::Type{Nothing}) = [\"'nothing' for nothing\"]\ninput_tips(::Type{Secret}) = [\"name only\"]\n# Show expected input type as a tip if it's anything other than `String`\ninput_tips(::Type{T}) where T = String[string(T)]\ninput_tips(::Type{String}) = String[]\ninput_tips(::Type{<:Signed}) = [\"Int\"]  # Specific Int type likely not important\n\n\"\"\"\n    convert_input(::Type{P}, ::Type{T}, s::AbstractString) -> T\n\nConvert the user input `s` into an instance of `T` for plugin of type `P`.\nA default implementation of `T(s)` exists.\n\"\"\"\nconvert_input(::Type, T::Type{<:Real}, s::AbstractString) = parse(T, s)\nconvert_input(::Type, T::Type, s::AbstractString) = T(s)\n\nfunction convert_input(P::Type, ::Type{Union{T, Nothing}}, s::AbstractString) where T\n    # This is kind of sketchy because technically, there might be some other input\n    # whose value we want to instantiate with the string \"nothing\",\n    # but I think that would be a pretty rare occurrence.\n    # If that really happens, they can just override this method.\n    return s == \"nothing\" ? nothing : convert_input(P, T, s)\nend\n\nfunction convert_input(P::Type, ::Type{Union{T, Symbol, Nothing}}, s::AbstractString) where T\n    # Assume inputs starting with ':' char are intended as Symbols, if a plugin accept symbols.\n    # i.e. assume the set of valid Symbols the plugin expects can be spelt starting with ':'.\n    return if startswith(s, \":\")\n        Symbol(chop(s, head=1, tail=0))  # remove ':'\n    else\n        convert_input(P, Union{T,Nothing}, s)\n    end\nend\n\nfunction convert_input(::Type, ::Type{Bool}, s::AbstractString)\n    s = lowercase(s)\n    return if startswith(s, 't') || startswith(s, 'y')\n        true\n    elseif startswith(s, 'f') || startswith(s, 'n')\n        false\n    else\n        throw(ArgumentError(\"Unrecognized boolean response\"))\n    end\nend\n\nfunction convert_input(P::Type, T::Type{<:Vector}, s::AbstractString)\n    startswith(s, '[') && endswith(s, ']') && (s = s[2:end-1])\n    xs = map(x -> strip(x, [' ', '\\t', '\"']), split(s, \",\"))\n    return map(x -> convert_input(P, eltype(T), x), xs)\nend\n\n# how would the user type `x` in interactive mode?\ninput_string(x) = string(x)\ninput_string(x::AbstractString) = isempty(x) ? repr(x) : String(x)\ninput_string(x::Symbol) = repr(x)\n\n\"\"\"\n    prompt(::Type{P}, ::Type{T}, ::Val{name::Symbol}) -> Any\n\nPrompts for an input of type `T` for field `name` of plugin type `P`.\nImplement this method to customize particular fields of particular types.\n\"\"\"\nprompt(P::Type, T::Type, name::Symbol) = prompt(P, T, Val(name))\n\n# The trailing `nothing` is a hack for `fallback_prompt` to use, ignore it.\nfunction prompt(P::Type, ::Type{T}, ::Val{name}, ::Nothing=nothing) where {T, name}\n    default = defaultkw(P, name)\n    tips = join([input_tips(T); \"default: $(input_string(default))\"], \", \")\n    input = Base.prompt(pretty_message(\"Enter value for '$name' ($tips)\"))\n    input === nothing && throw(InterruptException())\n    input = strip(input, '\"')\n    return if isempty(input)\n        default\n    else\n        try\n            # Working around what appears to be a bug in Julia 1.0:\n            # #145#issuecomment-623049535\n            if VERSION < v\"1.1\" && T isa Union && Nothing <: T\n                if input == \"nothing\"\n                    nothing\n                else\n                    convert_input(P, T.a === Nothing ? T.b : T.a, input)\n                end\n            else\n                convert_input(P, T, input)\n            end\n        catch ex\n            ex isa InterruptException && rethrow()\n            @warn \"Invalid input\" ex\n            prompt(P, T, name)\n        end\n    end\nend\n\n# Compute all the concrete subtypes of T.\nconcretes_rec(T::Type) = isabstracttype(T) ? vcat(map(concretes_rec, subtypes(T))...) : Any[T]\nconcretes(T::Type) = sort!(concretes_rec(T); by=nameof)\n\n# Compute name => type pairs for T's interactive options.\nfunction interactive_pairs(T::Type)\n    pairs = collect(map(name -> name => fieldtype(T, name), fieldnames(T)))\n\n    # Use prepend! here so that users can override field types if they wish.\n    prepend!(pairs, reverse(customizable(T)))\n    uniqueby!(first, pairs)\n    filter!(p -> last(p) !== NotCustomizable, pairs)\n    sort!(pairs; by=first)\n\n    return pairs\nend\n\n# unique!(f, xs) added here: https://github.com/JuliaLang/julia/pull/30141\nif VERSION >= v\"1.1\"\n    const uniqueby! = unique!\nelse\n    function uniqueby!(f, xs)\n        seen = Set()\n        todelete = Int[]\n        foreach(enumerate(map(f, xs))) do (i, out)\n            out in seen && push!(todelete, i)\n            push!(seen, out)\n        end\n        return deleteat!(xs, todelete)\n    end\nend\n"
  },
  {
    "path": "src/plugin.jl",
    "content": "const DEFAULT_PRIORITY = 1000\nconst DEFAULT_TEMPLATE_DIR = Ref{String}(joinpath(dirname(dirname(pathof(PkgTemplates))), \"templates\"))\n\n\"\"\"\n    @plugin struct ... end\n\nDefine a plugin subtype with keyword constructors and default values.\n\nFor details on the general syntax, see\n[Parameters.jl](https://mauro3.github.io/Parameters.jl/stable/manual/#Types-with-default-values-and-keyword-constructors-1).\n\nThere are a few extra restrictions:\n\n- Before using this macro, you must have imported `@with_kw_noshow` and `PkgTemplates` must\n  be in scope: `using PkgTemplates: PkgTemplates, @with_kw_noshow, @plugin`.\n- The type must be a subtype of [`Plugin`](@ref) (or one of its abstract subtypes)\n- The type cannot be parametric\n- All fields must have default values\n\n## Example\n\n```julia\nusing PkgTemplates: PkgTemplates, @plugin, @with_kw_noshow, Plugin\n@plugin struct MyPlugin <: Plugin\n    x::String = \"hello!\"\n    y::Union{Int, Nothing} = nothing\nend\n```\n\n## Implementing `@plugin` Manually\n\nIf for whatever reason, you are unable to meet the criteria outlined above,\nyou can manually implement the methods that `@plugin` would have created for you.\nThis is only mandatory if you want to use your plugin in interactive mode.\n\n### Keyword Constructors\n\nIf possible, use `@with_kw_noshow` to create a keyword constructor for your type.\nYour type must be capable of being instantiated with no arguments.\n\n### Default Values\n\nIf your type's fields have sensible default values, implement `defaultkw` like so:\n\n```julia\nusing PkgTemplates: PkgTemplates, Plugin\nstruct MyPlugin <: Plugin\n    x::String\nend\nPkgTemplates.defaultkw(::Type{MyPlugin}, ::Val{:x}) = \"my default\"\n```\n\nRemember to add a method to the function belonging to PkgTemplates,\nrather than creating your own function that PkgTemplates won't see.\n\nIf your plugin's fields have no sane defaults, then you'll need to implement\n[`prompt`](@ref) appropriately instead.\n\"\"\"\nmacro plugin(ex::Expr)\n    @assert ex.head === :struct \"Expression must be a struct definition\"\n    @assert ex.args[2] isa Expr && ex.args[2].head === :<: \"Type must have a supertype\"\n    T = ex.args[2].args[1]\n    @assert T isa Symbol \"@plugin does not work for parametric types\"\n\n    msg = \"Run `using PkgTemplates: @with_kw_noshow` before using this macro\"\n    @assert isdefined(__module__, Symbol(\"@with_kw_noshow\")) msg\n    block = :(begin @with_kw_noshow $ex end)\n\n    foreach(filter(arg -> arg isa Expr, ex.args[3].args)) do field\n        @assert field.head === :(=) \"Field must have a default value\"\n        name = QuoteNode(field.args[1].args[1])\n        default = field.args[2]\n        def = :(PkgTemplates.defaultkw(::Type{$T}, ::Val{$name}) = $default)\n        push!(block.args, def)\n    end\n\n    return esc(block)\nend\n\nfunction Base.:(==)(a::T, b::T) where T <: Plugin\n    return all(n -> getfield(a, n) == getfield(b, n), fieldnames(T))\nend\n\nstruct Disabled{P<:Plugin} end\nBase.:(!)(P::Type{<:Plugin}) = Disabled{P}()\n\n\"\"\"\n    Secret(name::AbstractString)\n\nRepresents a GitHub repository secret.\nWhen converted to a string, yields `\\${{ secrets.<name> }}`.\n\"\"\"\nstruct Secret\n    name::String\nend\n\nBase.print(io::IO, s::Secret) = print(io, \"\\${{ secrets.$(s.name) }}\")\n\n\"\"\"\nA simple plugin that, in general, creates a single file.\n\"\"\"\nabstract type FilePlugin <: Plugin end\n\n\"\"\"\n    default_file(paths::AbstractString...) -> String\n\nReturn a path relative to the default template file directory\n(`PkgTemplates/templates`).\n\"\"\"\ndefault_file(paths::AbstractString...) = joinpath(DEFAULT_TEMPLATE_DIR[], paths...)\n\n\"\"\"\n    view(::Plugin, ::Template, pkg::AbstractString) -> Dict{String, Any}\n\nReturn the view to be passed to the text templating engine for this plugin.\n`pkg` is the name of the package being generated.\n\nFor [`FilePlugin`](@ref)s, this is used for both the plugin badges\n(see [`badges`](@ref)) and the template file (see [`source`](@ref)).\nFor other [`Plugin`](@ref)s, it is used only for badges,\nbut you can always call it yourself as part of your [`hook`](@ref) implementation.\n\nBy default, an empty `Dict` is returned.\n\"\"\"\nview(::Plugin, ::Template, ::AbstractString) = Dict{String, Any}()\n\n\"\"\"\n    user_view(::Plugin, ::Template, pkg::AbstractString) -> Dict{String, Any}\n\nThe same as [`view`](@ref), but for use by package *users* for extension.\n\nValues returned by this function will override those from [`view`](@ref)\nwhen the keys are the same.\n\"\"\"\nuser_view(::Plugin, ::Template, ::AbstractString) = Dict{String, Any}()\n\n\"\"\"\n    combined_view(::Plugin, ::Template, pkg::AbstractString) -> Dict{String, Any}\n\nThis function combines [`view`](@ref) and [`user_view`](@ref) for use in text templating.\nIf you're doing manual file creation or text templating (i.e. writing [`Plugin`](@ref)s\nthat are not [`FilePlugin`](@ref)s), then you should use this function\nrather than either of the former two.\n\n!!! note\n    Do not implement this function yourself!\n    If you're implementing a plugin, you should implement [`view`](@ref).\n    If you're customizing a plugin as a user, you should implement [`user_view`](@ref).\n\"\"\"\nfunction combined_view(p::Plugin, t::Template, pkg::AbstractString)\n    return merge(view(p, t, pkg), user_view(p, t, pkg))\nend\n\n\"\"\"\n    tags(::Plugin) -> Tuple{String, String}\n\nReturn the delimiters used for text templating.\nSee the [`Citation`](@ref) plugin for a rare case where changing the tags is necessary.\n\nBy default, the tags are `\"{{\"` and `\"}}\"`.\n\"\"\"\ntags(::Plugin) = \"{{\", \"}}\"\n\n\"\"\"\n    priority(::Plugin, ::Union{typeof(prehook), typeof(hook), typeof(posthook)}) -> Int\n\nDetermines the order in which plugins are processed (higher goes first).\nThe default priority (`DEFAULT_PRIORITY`), is `$DEFAULT_PRIORITY`.\n\nYou can implement this function per-stage (by using `::typeof(hook)`, for example),\nor for all stages by simply using `::Function`.\n\"\"\"\npriority(::Plugin, ::Function) = DEFAULT_PRIORITY\n\n\"\"\"\n    gitignore(::Plugin) -> Vector{String}\n\nReturn patterns that should be added to `.gitignore`.\nThese are used by the [`Git`](@ref) plugin.\n\nBy default, an empty list is returned.\n\"\"\"\ngitignore(::Plugin) = String[]\n\n\"\"\"\n    badges(::Plugin) -> Union{Badge, Vector{Badge}}\n\nReturn a list of [`Badge`](@ref)s, or just one, to be added to `README.md`.\nThese are used by the [`Readme`](@ref) plugin to add badges to the README.\n\nBy default, an empty list is returned.\n\"\"\"\nbadges(::Plugin) = Badge[]\n\n\"\"\"\n    source(::FilePlugin) -> Union{String, Nothing}\n\nReturn the path to a plugin's template file, or `nothing` to indicate no file.\n\nBy default, `nothing` is returned.\n\"\"\"\nsource(::FilePlugin) = nothing\n\n\"\"\"\n    destination(::FilePlugin) -> String\n\nReturn the destination, relative to the package root, of a plugin's configuration file.\n\nThis function **must** be implemented.\n\"\"\"\nfunction destination end\n\n\"\"\"\n    Badge(hover::AbstractString, image::AbstractString, link::AbstractString)\n\nContainer for Markdown badge data.\nEach argument can contain placeholders,\nwhich will be filled in with values from [`combined_view`](@ref).\n\n## Arguments\n- `hover::AbstractString`: Text to appear when the mouse is hovered over the badge.\n- `image::AbstractString`: URL to the image to display.\n- `link::AbstractString`: URL to go to upon clicking the badge.\n\"\"\"\nstruct Badge\n    hover::String\n    image::String\n    link::String\nend\n\nBase.string(b::Badge) = \"[![$(b.hover)]($(b.image))]($(b.link))\"\n\n# Format a plugin's badges as a list of strings, with all substitutions applied.\nfunction badges(p::Plugin, t::Template, pkg::AbstractString)\n    bs = badges(p)\n    bs isa Vector || (bs = [bs])\n    return map(b -> render_text(string(b), combined_view(p, t, pkg)), bs)\nend\n\n\"\"\"\n    validate(::Plugin, ::Template)\n\nPerform any required validation for a [`Plugin`](@ref).\n\nIt is preferred to do validation here instead of in [`prehook`](@ref),\nbecause this function is called at [`Template`](@ref) construction time,\nwhereas the prehook is only run at package generation time.\n\"\"\"\nvalidate(::Plugin, ::Template) = nothing\n\n\"\"\"\n    prehook(::Plugin, ::Template, pkg_dir::AbstractString)\n\nStage 1 of the package generation process (the \"before\" stage, in general).\nAt this point, `pkg_dir` is an empty directory that will eventually contain the package,\nand neither the [`hook`](@ref)s nor the [`posthook`](@ref)s have run.\n\n!!! note\n    `pkg_dir` only stays empty until the first plugin chooses to create a file.\n    See also: [`priority`](@ref).\n\"\"\"\nprehook(::Plugin, ::Template, ::AbstractString) = nothing\n\n\"\"\"\n    hook(::Plugin, ::Template, pkg_dir::AbstractString)\n\nStage 2 of the package generation pipeline (the \"main\" stage, in general).\nAt this point, the [`prehook`](@ref)s have run, but not the [`posthook`](@ref)s.\n\n`pkg_dir` is the directory in which the package is being generated; [`pkg_name`](@ref)`\nwill return the package name.\n\n!!! note\n    You usually shouldn't implement this function for [`FilePlugin`](@ref)s.\n    If you do, it should probably `invoke` the generic method\n    (otherwise, there's not much reason to subtype `FilePlugin`).\n\"\"\"\nhook(::Plugin, ::Template, ::AbstractString) = nothing\n\n\"\"\"\n    posthook(::Plugin, ::Template, pkg_dir::AbstractString)\n\nStage 3 of the package generation pipeline (the \"after\" stage, in general).\nAt this point, both the [`prehook`](@ref)s and [`hook`](@ref)s have run.\n\"\"\"\nposthook(::Plugin, ::Template, ::AbstractString) = nothing\n\nfunction validate(p::T, ::Template) where T <: FilePlugin\n    src = source(p)\n    src === nothing && return\n    isfile(src) || throw(ArgumentError(\"$(nameof(T)): The file $src does not exist\"))\nend\n\nfunction hook(p::FilePlugin, t::Template, pkg_dir::AbstractString)\n    source(p) === nothing && return\n    pkg = pkg_name(pkg_dir)\n    path = joinpath(pkg_dir, destination(p))\n    text = render_plugin(p, t, pkg)\n    gen_file(path, text)\nend\n\nfunction render_plugin(p::FilePlugin, t::Template, pkg::AbstractString)\n    return render_file(source(p), combined_view(p, t, pkg), tags(p))\nend\n\n\"\"\"\n    gen_file(file::AbstractString, text::AbstractString)\n\nCreate a new file containing some given text.\nTrailing whitespace is removed, and the file will end with a newline.\n\"\"\"\nfunction gen_file(file::AbstractString, text::AbstractString)\n    mkpath(dirname(file))\n    text = strip(join(map(rstrip, split(text, \"\\n\")), \"\\n\")) * \"\\n\"\n    write(file, text)\nend\n\n\"\"\"\n    render_file(file::AbstractString, view::Dict{<:AbstractString}, tags=nothing) -> String\n\nRender a template file with the data in `view`.\n`tags` should be a tuple of two strings, which are the opening and closing delimiters,\nor `nothing` to use the default delimiters.\n\"\"\"\nfunction render_file(file::AbstractString, view::Dict{<:AbstractString}, tags=nothing)\n    return render_text(read(file, String), view, tags)\nend\n\n\"\"\"\n    render_text(text::AbstractString, view::Dict{<:AbstractString}, tags=nothing) -> String\n\nRender some text with the data in `view`.\n`tags` should be a tuple of two strings, which are the opening and closing delimiters,\nor `nothing` to use the default delimiters.\n\"\"\"\nfunction render_text(text::AbstractString, view::Dict{<:AbstractString}, tags=nothing)\n    return tags === nothing ? render(text, view) : render(text, view; tags=tags)\nend\n\n\"\"\"\n    needs_username(::Plugin) -> Bool\n\nDetermine whether or not a plugin needs a Git hosting service username to function correctly.\nIf you are implementing a plugin that uses the `user` field of a [`Template`](@ref),\nyou should implement this function and return `true`.\n\"\"\"\nneeds_username(::Plugin) = false\n\n\"\"\"\n    pkg_name(pkg_dir::AbstractString)\n\nReturn package name of package at `pkg_dir`, i.e., `basename(pkg_dir)` excluding any\n`.jl` suffix, if present. For example, `foo/bar/Whee.jl` and `foo/bar/Whee` both\nreturn `Whee`.\n\"\"\"\nfunction pkg_name(pkg_dir::AbstractString)\n    pkg = basename(pkg_dir)\n    return endswith(pkg, \".jl\") ? pkg[1:end-3] : pkg\nend\n\ninclude(joinpath(\"plugins\", \"project_file.jl\"))\ninclude(joinpath(\"plugins\", \"src_dir.jl\"))\ninclude(joinpath(\"plugins\", \"tests.jl\"))\ninclude(joinpath(\"plugins\", \"readme.jl\"))\ninclude(joinpath(\"plugins\", \"license.jl\"))\ninclude(joinpath(\"plugins\", \"git.jl\"))\ninclude(joinpath(\"plugins\", \"tagbot.jl\"))\ninclude(joinpath(\"plugins\", \"develop.jl\"))\ninclude(joinpath(\"plugins\", \"coverage.jl\"))\ninclude(joinpath(\"plugins\", \"codeowners.jl\"))\ninclude(joinpath(\"plugins\", \"ci.jl\"))\ninclude(joinpath(\"plugins\", \"compat_helper.jl\"))\ninclude(joinpath(\"plugins\", \"citation.jl\"))\ninclude(joinpath(\"plugins\", \"documenter.jl\"))\ninclude(joinpath(\"plugins\", \"badges.jl\"))\ninclude(joinpath(\"plugins\", \"register.jl\"))\ninclude(joinpath(\"plugins\", \"dependabot.jl\"))\ninclude(joinpath(\"plugins\", \"formatter.jl\"))\ninclude(joinpath(\"plugins\", \"pkgbenchmark.jl\"))\n"
  },
  {
    "path": "src/plugins/badges.jl",
    "content": "\"\"\"\nA [`Plugin`](@ref) that only adds a [`Badge`](@ref) to the [`Readme`](@ref) file.\n\nConcrete subtypes only need to implement a [`badges`](@ref) method.\n\"\"\"\nabstract type BadgePlugin <: Plugin end\n\n\"\"\"\n    BlueStyleBadge()\n\nAdds a [`BlueStyle`](https://github.com/invenia/BlueStyle) badge to the [`Readme`](@ref) file.\n\"\"\"\nstruct BlueStyleBadge <: BadgePlugin end\n\nfunction badges(::BlueStyleBadge)\n    return Badge(\n        \"Code Style: Blue\",\n        \"https://img.shields.io/badge/code%20style-blue-4495d1.svg\",\n        \"https://github.com/invenia/BlueStyle\",\n    )\nend\n\n\"\"\"\n    ColPracBadge()\n\nAdds a [`ColPrac`](https://github.com/SciML/ColPrac) badge to the [`Readme`](@ref) file.\n\"\"\"\nstruct ColPracBadge <: BadgePlugin end\n\nfunction badges(::ColPracBadge)\n    return Badge(\n        \"ColPrac: Contributor's Guide on Collaborative Practices for Community Packages\",\n        \"https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet\",\n        \"https://github.com/SciML/ColPrac\",\n    )\nend\n\n\"\"\"\n    PkgEvalBadge()\n\nAdds a [`PkgEval` badge](https://github.com/JuliaCI/NanosoldierReports#pkgeval-reports) to the [`Readme`](@ref) file.\n\"\"\"\nstruct PkgEvalBadge <: BadgePlugin end\n\nfunction badges(::PkgEvalBadge)\n    return Badge(\n        \"PkgEval\",\n        \"https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/{{{PKG1}}}/{{{PKG}}}.svg\",\n        \"https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/{{{PKG1}}}/{{{PKG}}}.html\"\n    )\nend\n\nfunction view(::PkgEvalBadge, t::Template, pkg::AbstractString)\n    return Dict(\"PKG1\" => first(pkg), \"PKG\" => pkg)\nend\n"
  },
  {
    "path": "src/plugins/ci.jl",
    "content": "\"\"\"\n    format_version(v::Union{VersionNumber, AbstractString}) -> String\n\nStrip everything but the major and minor release from a `VersionNumber`.\nStrings are left in their original form.\n\"\"\"\nformat_version(v::VersionNumber) = \"$(v.major).$(v.minor)\"\nformat_version(v::AbstractString) = string(v)\n\nconst ALLOWED_FAILURES = [\"nightly\"]  # TODO: Update this list with new RCs.\nconst DEFAULT_CI_VERSIONS = map(format_version, [default_version(), VERSION, \"nightly\"])\nconst DEFAULT_CI_VERSIONS_GITHUB = map(format_version, [default_version(), VERSION, \"pre\"])\nconst DEFAULT_CI_VERSIONS_NO_PRERELEASE = map(format_version, [default_version(), VERSION])\nconst EXTRA_VERSIONS_DOC = \"- `extra_versions::Vector`: Extra Julia versions to test, as strings or `VersionNumber`s.\"\n\n\"\"\"\n    GitHubActions(;\n        file=\"$(contractuser(default_file(\"github\", \"workflows\", \"CI.yml\")))\",\n        destination=\"CI.yml\",\n        linux=true,\n        osx=false,\n        windows=false,\n        x64=true,\n        x86=false,\n        coverage=true,\n        extra_versions=$DEFAULT_CI_VERSIONS_GITHUB,\n    )\n\nIntegrates your packages with [GitHub Actions](https://github.com/features/actions).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for the workflow file.\n- `destination::AbstractString`: Destination of the workflow file,\n  relative to `.github/workflows`.\n- `linux::Bool`: Whether or not to run builds on Linux.\n- `osx::Bool`: Whether or not to run builds on OSX (MacOS).\n- `windows::Bool`: Whether or not to run builds on Windows.\n- `x64::Bool`: Whether or not to run builds on 64-bit architecture.\n- `x86::Bool`: Whether or not to run builds on 32-bit architecture.\n- `coverage::Bool`: Whether or not to publish code coverage.\n  Another code coverage plugin such as [`Codecov`](@ref) must also be included.\n$EXTRA_VERSIONS_DOC\n\n!!! note\n    If using coverage plugins, don't forget to manually add your API tokens as secrets,\n    as described [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets#creating-encrypted-secrets).\n\"\"\"\n@plugin struct GitHubActions <: FilePlugin\n    file::String = default_file(\"github\", \"workflows\", \"CI.yml\")\n    destination::String = \"CI.yml\"\n    linux::Bool = true\n    osx::Bool = false\n    windows::Bool = false\n    x64::Bool = true\n    x86::Bool = false\n    coverage::Bool = true\n    extra_versions::Vector = DEFAULT_CI_VERSIONS_GITHUB\nend\n\nsource(p::GitHubActions) = p.file\ndestination(p::GitHubActions) = joinpath(\".github\", \"workflows\", p.destination)\ntags(::GitHubActions) = \"<<\", \">>\"\n\nbadges(p::GitHubActions) = Badge(\n    \"Build Status\",\n    \"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions/workflows/$(p.destination)/badge.svg?branch={{{BRANCH}}}\",\n    \"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions/workflows/$(p.destination)?query=branch%3A{{{BRANCH}}}\",\n)\n\nfunction view(p::GitHubActions, t::Template, pkg::AbstractString)\n    os = String[]\n    p.linux && push!(os, \"ubuntu-latest\")\n    p.osx && push!(os, \"macOS-latest\")\n    p.windows && push!(os, \"windows-latest\")\n    arch = filter(a -> getfield(p, Symbol(a)), [\"x64\", \"x86\"])\n    excludes = Dict{String, String}[]\n    p.osx && p.x86 && push!(excludes, Dict(\"E_OS\" => \"macOS-latest\", \"E_ARCH\" => \"x86\"))\n\n    v = Dict(\n        \"ARCH\" => arch,\n        \"EXCLUDES\" => excludes,\n        \"HAS_CODECOV\" => p.coverage && hasplugin(t, Codecov),\n        \"HAS_COVERALLS\" => p.coverage && hasplugin(t, Coveralls),\n        \"HAS_DOCUMENTER\" => hasplugin(t, Documenter{GitHubActions}),\n        \"HAS_EXCLUDES\" => !isempty(excludes),\n        \"HAS_RUNIC\" => hasplugin(t, Runic{GitHubActions}),\n        \"OS\" => os,\n        \"PKG\" => pkg,\n        \"USER\" => t.user,\n        \"VERSIONS\" => collect_versions(t, p.extra_versions),\n    )\n    p = getplugin(t, Git)\n    if p !== nothing\n        v[\"BRANCH\"] = p.branch\n    end\n    return v\nend\n\n\"\"\"\n    TravisCI(;\n        file=\"$(contractuser(default_file(\"travis.yml\")))\",\n        linux=true,\n        osx=false,\n        windows=false,\n        x64=true,\n        x86=false,\n        arm64=false,\n        coverage=true,\n        extra_versions=$DEFAULT_CI_VERSIONS,\n    )\n\nIntegrates your packages with [Travis CI](https://travis-ci.com).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `.travis.yml`.\n- `linux::Bool`: Whether or not to run builds on Linux.\n- `osx::Bool`: Whether or not to run builds on OSX (MacOS).\n- `windows::Bool`: Whether or not to run builds on Windows.\n- `x64::Bool`: Whether or not to run builds on 64-bit architecture.\n- `x86::Bool`: Whether or not to run builds on 32-bit architecture.\n- `arm64::Bool`: Whether or not to run builds on the ARM64 architecture.\n- `coverage::Bool`: Whether or not to publish code coverage.\n  Another code coverage plugin such as [`Codecov`](@ref) must also be included.\n$EXTRA_VERSIONS_DOC\n\"\"\"\n@plugin struct TravisCI <: FilePlugin\n    file::String = default_file(\"travis.yml\")\n    linux::Bool = true\n    osx::Bool = false\n    windows::Bool = false\n    x64::Bool = true\n    x86::Bool = false\n    arm64::Bool = false\n    coverage::Bool = true\n    extra_versions::Vector = DEFAULT_CI_VERSIONS\nend\n\nsource(p::TravisCI) = p.file\ndestination(::TravisCI) = \".travis.yml\"\n\nbadges(::TravisCI) = Badge(\n    \"Build Status\",\n    \"https://app.travis-ci.com/{{{USER}}}/{{{PKG}}}.jl.svg?branch={{{BRANCH}}}\",\n    \"https://app.travis-ci.com/{{{USER}}}/{{{PKG}}}.jl\",\n)\n\nfunction view(p::TravisCI, t::Template, pkg::AbstractString)\n    os = filter(o -> getfield(p, Symbol(o)), [\"linux\", \"osx\", \"windows\"])\n    arch = filter(a -> getfield(p, Symbol(a)), [\"x64\", \"x86\", \"arm64\"])\n    versions = collect_versions(t, p.extra_versions)\n    allow_failures = filter(in(versions), ALLOWED_FAILURES)\n\n    excludes = Dict{String, String}[]\n    p.x86 && p.osx && push!(excludes, Dict(\"E_OS\" => \"osx\", \"E_ARCH\" => \"x86\"))\n    if p.arm64\n        p.osx && push!(excludes, Dict(\"E_OS\" => \"osx\", \"E_ARCH\" => \"arm64\"))\n        p.windows && push!(excludes, Dict(\"E_OS\" => \"windows\", \"E_ARCH\" => \"arm64\"))\n        \"pre\" in versions && push!(excludes, Dict(\"E_JULIA\" => \"pre\", \"E_ARCH\" => \"arm64\"))\n    end\n\n    return Dict(\n        \"ALLOW_FAILURES\" => allow_failures,\n        \"ARCH\" => arch,\n        \"BRANCH\" => something(default_branch(t), DEFAULT_DEFAULT_BRANCH),\n        \"EXCLUDES\" => excludes,\n        \"HAS_ALLOW_FAILURES\" => !isempty(allow_failures),\n        \"HAS_CODECOV\" => hasplugin(t, Codecov),\n        \"HAS_COVERAGE\" => p.coverage && hasplugin(t, is_coverage),\n        \"HAS_COVERALLS\" => hasplugin(t, Coveralls),\n        \"HAS_DOCUMENTER\" => hasplugin(t, Documenter{TravisCI}),\n        \"HAS_EXCLUDES\" => !isempty(excludes),\n        \"OS\" => os,\n        \"PKG\" => pkg,\n        \"USER\" => t.user,\n        \"VERSION\" => format_version(t.julia),\n        \"VERSIONS\" => versions,\n    )\nend\n\n\"\"\"\n    AppVeyor(;\n        file=\"$(contractuser(default_file(\"appveyor.yml\")))\",\n        x86=false,\n        coverage=true,\n        extra_versions=$DEFAULT_CI_VERSIONS,\n    )\n\nIntegrates your packages with [AppVeyor](https://appveyor.com)\nvia [AppVeyor.jl](https://github.com/JuliaCI/Appveyor.jl).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `.appveyor.yml`.\n- `x86::Bool`: Whether or not to run builds on 32-bit systems,\n  in addition to the default 64-bit builds.\n- `coverage::Bool`: Whether or not to publish code coverage.\n  [`Codecov`](@ref) must also be included.\n$EXTRA_VERSIONS_DOC\n\"\"\"\n@plugin struct AppVeyor <: FilePlugin\n    file::String = default_file(\"appveyor.yml\")\n    x86::Bool = false\n    coverage::Bool = true\n    extra_versions::Vector = DEFAULT_CI_VERSIONS\nend\n\nsource(p::AppVeyor) = p.file\ndestination(::AppVeyor) = \".appveyor.yml\"\n\nbadges(::AppVeyor) = Badge(\n    \"Build Status\",\n    \"https://ci.appveyor.com/api/projects/status/github/{{{USER}}}/{{{PKG}}}.jl?svg=true\",\n    \"https://ci.appveyor.com/project/{{{USER}}}/{{{PKG}}}-jl\",\n)\n\nfunction view(p::AppVeyor, t::Template, pkg::AbstractString)\n    platforms = [\"x64\"]\n    p.x86 && push!(platforms, \"x86\")\n\n    versions = collect_versions(t, p.extra_versions)\n    allow_failures = filter(in(versions), ALLOWED_FAILURES)\n\n    return Dict(\n        \"ALLOW_FAILURES\" => allow_failures,\n        \"BRANCH\" => something(default_branch(t), DEFAULT_DEFAULT_BRANCH),\n        \"HAS_ALLOW_FAILURES\" => !isempty(allow_failures),\n        \"HAS_CODECOV\" => p.coverage && hasplugin(t, Codecov),\n        \"PKG\" => pkg,\n        \"PLATFORMS\" => platforms,\n        \"USER\" => t.user,\n        \"VERSIONS\" => versions,\n    )\nend\n\n\"\"\"\n    CirrusCI(;\n        file=\"$(contractuser(default_file(\"cirrus.yml\")))\",\n        image=\"freebsd-12-0-release-amd64\",\n        coverage=true,\n        extra_versions=$DEFAULT_CI_VERSIONS,\n    )\n\nIntegrates your packages with [Cirrus CI](https://cirrus-ci.org)\nvia [CirrusCI.jl](https://github.com/ararslan/CirrusCI.jl).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `.cirrus.yml`.\n- `image::AbstractString`: The FreeBSD image to be used.\n- `coverage::Bool`: Whether or not to publish code coverage.\n  [`Codecov`](@ref) must also be included.\n$EXTRA_VERSIONS_DOC\n\n!!! note\n    Code coverage submission from Cirrus CI is not yet supported by\n    [Coverage.jl](https://github.com/JuliaCI/Coverage.jl).\n\"\"\"\n@plugin struct CirrusCI <: FilePlugin\n    file::String = default_file(\"cirrus.yml\")\n    image::String = \"freebsd-12-0-release-amd64\"\n    coverage::Bool = true\n    extra_versions::Vector = DEFAULT_CI_VERSIONS\nend\n\nsource(p::CirrusCI) = p.file\ndestination(::CirrusCI) = \".cirrus.yml\"\n\nbadges(::CirrusCI) = Badge(\n    \"Build Status\",\n    \"https://api.cirrus-ci.com/github/{{{USER}}}/{{{PKG}}}.jl.svg\",\n    \"https://cirrus-ci.com/github/{{{USER}}}/{{{PKG}}}.jl\",\n)\n\nfunction view(p::CirrusCI, t::Template, pkg::AbstractString)\n    return Dict(\n        \"HAS_CODECOV\" => hasplugin(t, Codecov),\n        \"HAS_COVERALLS\" => hasplugin(t, Coveralls),\n        \"HAS_COVERAGE\" => p.coverage && hasplugin(t, is_coverage),\n        \"IMAGE\" => p.image,\n        \"PKG\" => pkg,\n        \"USER\" => t.user,\n        \"VERSIONS\" => collect_versions(t, p.extra_versions),\n    )\nend\n\n\"\"\"\n    GitLabCI(;\n        file=\"$(contractuser(default_file(\"gitlab-ci.yml\")))\",\n        coverage=true,\n        extra_versions=$DEFAULT_CI_VERSIONS_NO_PRERELEASE,\n    )\n\nIntegrates your packages with [GitLab CI](https://docs.gitlab.com/ce/ci).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `.gitlab-ci.yml`.\n- `coverage::Bool`: Whether or not to compute code coverage.\n$EXTRA_VERSIONS_DOC\n\n## GitLab Pages\nDocumentation can be generated by including a `Documenter{GitLabCI}` plugin.\nSee [`Documenter`](@ref) for more information.\n\n!!! note\n    Nightly Julia is not supported.\n\"\"\"\n@plugin struct GitLabCI <: FilePlugin\n    file::String = default_file(\"gitlab-ci.yml\")\n    coverage::Bool = true\n    # Nightly has no Docker image.\n    extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_PRERELEASE\nend\n\ngitignore(p::GitLabCI) = p.coverage ? COVERAGE_GITIGNORE : String[]\nsource(p::GitLabCI) = p.file\ndestination(::GitLabCI) = \".gitlab-ci.yml\"\n\nfunction badges(p::GitLabCI)\n    ci = Badge(\n        \"Build Status\",\n        \"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/badges/{{{BRANCH}}}/pipeline.svg\",\n        \"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/pipelines\",\n    )\n    cov = Badge(\n        \"Coverage\",\n        \"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/badges/{{{BRANCH}}}/coverage.svg\",\n        \"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/commits/{{{BRANCH}}}\",\n    )\n    return p.coverage ? [ci, cov] : [ci]\nend\n\nfunction view(p::GitLabCI, t::Template, pkg::AbstractString)\n    return Dict(\n        \"BRANCH\" => something(default_branch(t), DEFAULT_DEFAULT_BRANCH),\n        \"HAS_COVERAGE\" => p.coverage,\n        \"HAS_DOCUMENTER\" => hasplugin(t, Documenter{GitLabCI}),\n        \"HOST\" => t.host,\n        \"PKG\" => pkg,\n        \"USER\" => t.user,\n        \"VERSION\" => format_version(t.julia),\n        \"VERSIONS\" => collect_versions(t, p.extra_versions),\n    )\nend\n\n\"\"\"\n    DroneCI(;\n        file=\"$(contractuser(default_file(\"drone.star\")))\",\n        amd64=true,\n        arm=false,\n        arm64=false,\n        extra_versions=$DEFAULT_CI_VERSIONS_NO_PRERELEASE,\n    )\n\nIntegrates your packages with [Drone CI](https://drone.io).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `.drone.star`.\n- `destination::AbstractString`: File destination, relative to the repository root.\n  For example, you might want to generate a `.drone.yml` instead of the default Starlark file.\n- `amd64::Bool`: Whether or not to run builds on AMD64.\n- `arm::Bool`: Whether or not to run builds on ARM (32-bit).\n- `arm64::Bool`: Whether or not to run builds on ARM64.\n$EXTRA_VERSIONS_DOC\n\n!!! note\n    Nightly Julia is not supported.\n\"\"\"\n@plugin struct DroneCI <: FilePlugin\n    file::String = default_file(\"drone.star\")\n    destination::String = \".drone.star\"\n    amd64::Bool = true\n    arm::Bool = false\n    arm64::Bool = false\n    extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_PRERELEASE\nend\n\nsource(p::DroneCI) = p.file\ndestination(p::DroneCI) = p.destination\n\nbadges(::DroneCI) = Badge(\n    \"Build Status\",\n    \"https://cloud.drone.io/api/badges/{{{USER}}}/{{{PKG}}}.jl/status.svg\",\n    \"https://cloud.drone.io/{{{USER}}}/{{{PKG}}}.jl\",\n)\n\nfunction view(p::DroneCI, t::Template, pkg::AbstractString)\n    arches = String[]\n    p.amd64 && push!(arches, \"amd64\")\n    p.arm && push!(arches, \"arm\")\n    p.arm64 && push!(arches, \"arm64\")\n\n    return Dict(\n        \"ARCHES\" => join(map(repr, arches), \", \"),\n        \"PKG\" => pkg,\n        \"USER\" => t.user,\n        \"VERSIONS\" => join(map(repr, collect_versions(t, p.extra_versions)), \", \"),\n    )\nend\n\n\"\"\"\n    collect_versions(t::Template, versions::Vector) -> Vector{String}\n\nCombine `t`'s Julia version with `versions`, and format them as `major.minor`.\nThis is useful for creating lists of versions to be included in CI configurations.\n\"\"\"\nfunction collect_versions(t::Template, versions::Vector)\n    custom = map(v -> v isa VersionNumber ? format_version(v) : string(v), versions)\n    vs = map(v -> lstrip(v, 'v'), [format_version(t.julia); custom])\n    filter!(vs) do v\n        # Throw away any versions lower than the template's minimum.\n        # but v1.6 should be accepted as a CI number even when t.julia = v1.6.7\n        try\n            Base.thisminor(VersionNumber(v)) >= Base.thisminor(t.julia)\n        catch e\n            e isa ArgumentError || rethrow()\n            true\n        end\n    end\n    return sort(unique(vs))\nend\n\nconst AllCI = Union{AppVeyor, GitHubActions, TravisCI, CirrusCI, GitLabCI, DroneCI}\n\n\"\"\"\n    is_ci(::Plugin) -> Bool\n\nDetermine whether or not a plugin is a CI plugin.\nIf you are adding a CI plugin, you should implement this function and return `true`.\n\"\"\"\nis_ci(::Plugin) = false\nis_ci(::AllCI) = true\n\nneeds_username(::AllCI) = true\ncustomizable(::Type{<:AllCI}) = (:extra_versions => Vector{String},)\n"
  },
  {
    "path": "src/plugins/citation.jl",
    "content": "\"\"\"\n    Citation(; file=\"$(contractuser(default_file(\"CITATION.bib\")))\", readme=false)\n\nCreates a `CITATION.bib` file for citing package repositories.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `CITATION.bib`.\n- `readme::Bool`: Whether or not to include a section about citing in the README.\n\"\"\"\n@plugin struct Citation <: FilePlugin\n    file::String = default_file(\"CITATION.bib\")\n    readme::Bool = false\nend\n\ntags(::Citation) = \"<<\", \">>\"\n\nsource(p::Citation) = p.file\ndestination(::Citation) = \"CITATION.bib\"\n\nview(::Citation, t::Template, pkg::AbstractString) = Dict(\n    \"AUTHORS\" => join(t.authors, \", \"),\n    \"MONTH\" => month(today()),\n    \"PKG\" => pkg,\n    \"URL\" => \"https://$(t.host)/$(t.user)/$pkg.jl\",\n    \"VERSION\" => \"v$(first([p for p in t.plugins if p isa ProjectFile]).version)\",\n    \"YEAR\" => year(today()),\n)\n\nneeds_username(::Citation) = true\n"
  },
  {
    "path": "src/plugins/codeowners.jl",
    "content": "\"\"\"\n    CodeOwners <: Plugin\n    CodeOwners(; owners)\n\nA plugin which created GitLab/GitHub compatible CODEOWNERS files.\nowners should be a vector of patterns mapped to a vector of owner names.\nFor example:\n`owners=[\"*\"=>[\"@invenia\"], \"README.md\"=>[\"@documentation\",\"@oxinabox]]`\nassigns general ownership over all files to the invenia group,\nbut assigns ownership of the readme to the documentation group and to the user oxinabox.\n\nBy default, it creates an empty CODEOWNERS file.\n\"\"\"\n@plugin struct CodeOwners <: Plugin\n    owners::Vector{Pair{String,Vector{String}}} = Vector{Pair{String,Vector{String}}}()\nend\n\nPkgTemplates.destination(::CodeOwners) = \"CODEOWNERS\"\n\nfunction render_plugin(p::CodeOwners)\n    join((pattern * \" \" * join(subowners, \" \") for (pattern, subowners) in p.owners), \"\\n\")\nend\n\nfunction PkgTemplates.hook(p::CodeOwners, ::Template, pkg_dir::AbstractString)\n    path = joinpath(pkg_dir, destination(p))\n    text = render_plugin(p)\n    PkgTemplates.gen_file(path, text)\nend\n\nfunction PkgTemplates.validate(p::CodeOwners, ::Template)\n    for (pattern, subowners) in p.owners\n        contains(pattern, r\"\\s\") && throw(ArgumentError((\"Pattern ($pattern) must not contain whitespace\")))\n        for subowner in subowners\n            contains(subowner, r\"\\s\") && throw(ArgumentError(\"Owner name ($subowner) must not contain whitespace\"))\n            '@' ∈ subowner || throw(ArgumentError(\"Owner name ($subowner) must be `@user` or `email@domain.com`\"))\n        end\n    end\nend\n"
  },
  {
    "path": "src/plugins/compat_helper.jl",
    "content": "\"\"\"\n    CompatHelper(;\n        file=\"$(contractuser(default_file(\"github\", \"workflows\", \"CompatHelper.yml\")))\",\n        destination=\"CompatHelper.yml\",\n        cron=\"0 0 * * *\",\n    )\n\nIntegrates your packages with [CompatHelper](https://github.com/bcbi/CompatHelper.jl) via GitHub Actions.\n\n!!! note \"Deprecated in favor of Dependabot\"\n    As of December 2025, [Dependabot supports Julia](https://github.blog/changelog/2025-12-16-dependabot-version-updates-now-support-julia/)\n    and is now the recommended approach for keeping package dependencies up to date.\n    The [`Dependabot`](@ref) plugin is included in the default template plugins.\n    `CompatHelper` remains available for users who prefer it.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for the workflow file.\n- `destination::AbstractString`: Destination of the workflow file,\n  relative to `.github/workflows`.\n- `cron::AbstractString`: Cron expression for the schedule interval.\n\"\"\"\n@plugin struct CompatHelper <: FilePlugin\n    file::String = default_file(\"github\", \"workflows\", \"CompatHelper.yml\")\n    destination::String = \"CompatHelper.yml\"\n    cron::String = \"0 0 * * *\"\nend\n\nsource(p::CompatHelper) = p.file\ndestination(p::CompatHelper) = joinpath(\".github\", \"workflows\", p.destination)\ntags(::CompatHelper) = \"<<\", \">>\"\n\nview(p::CompatHelper, ::Template, ::AbstractString) = Dict(\"CRON\" => p.cron)\n"
  },
  {
    "path": "src/plugins/coverage.jl",
    "content": "const COVERAGE_GITIGNORE = [\"*.jl.cov\", \"*.jl.*.cov\", \"*.jl.mem\"]\n\n\"\"\"\n    Codecov(; file=nothing)\n\nSets up code coverage submission from CI to [Codecov](https://codecov.io).\n\n## Keyword Arguments\n- `file::Union{AbstractString, Nothing}`: Template file for `.codecov.yml`,\n  or `nothing` to create no file.\n\"\"\"\n@plugin struct Codecov <: FilePlugin\n    file::Union{String, Nothing} = nothing\nend\n\nsource(p::Codecov) = p.file\ndestination(::Codecov) = \".codecov.yml\"\n\nbadges(::Codecov) = Badge(\n    \"Coverage\",\n    \"https://codecov.io/gh/{{{USER}}}/{{{PKG}}}.jl/branch/{{{BRANCH}}}/graph/badge.svg\",\n    \"https://codecov.io/gh/{{{USER}}}/{{{PKG}}}.jl\",\n)\n\n\"\"\"\n    Coveralls(; file=nothing)\n\nSets up code coverage submission from CI to [Coveralls](https://coveralls.io).\n\n## Keyword Arguments\n- `file::Union{AbstractString, Nothing}`: Template file for `.coveralls.yml`,\n  or `nothing` to create no file.\n\"\"\"\n@plugin struct Coveralls <: FilePlugin\n    file::Union{String, Nothing} = nothing\nend\n\nsource(p::Coveralls) = p.file\ndestination(::Coveralls) = \".coveralls.yml\"\n\nbadges(::Coveralls) = Badge(\n    \"Coverage\",\n    \"https://coveralls.io/repos/github/{{{USER}}}/{{{PKG}}}.jl/badge.svg?branch={{{BRANCH}}}\",\n    \"https://coveralls.io/github/{{{USER}}}/{{{PKG}}}.jl?branch={{{BRANCH}}}\",\n)\n\ngitignore(::Union{Codecov, Coveralls}) = COVERAGE_GITIGNORE\nview(::Union{Codecov, Coveralls}, t::Template, pkg::AbstractString) = Dict(\n    \"BRANCH\" => something(default_branch(t), DEFAULT_DEFAULT_BRANCH),\n    \"PKG\" => pkg,\n    \"USER\" => t.user,\n)\n\n\"\"\"\n    is_coverage(::Plugin) -> Bool\n\nDetermine whether or not a plugin is a coverage plugin.\nIf you are adding a coverage plugin, you should implement this function and return `true`.\n\"\"\"\nis_coverage(::Plugin) = false\nis_coverage(::Union{Codecov, Coveralls}) = true\n\nneeds_username(::Union{Codecov, Coveralls}) = true\n"
  },
  {
    "path": "src/plugins/dependabot.jl",
    "content": "\"\"\"\n    Dependabot(; file=\"$(contractuser(default_file(\"github\", \"dependabot.yml\")))\")\n\nSets up Dependabot to create PRs whenever GitHub Actions or Julia package dependencies\ncan be updated. Monitors the root `/`, `/docs`, and `/test` directories for Julia dependencies.\n\nAs of December 2025, [Dependabot supports Julia](https://github.blog/changelog/2025-12-16-dependabot-version-updates-now-support-julia/)\nand is the recommended approach for keeping package dependencies up to date.\nThis replaces the functionality previously provided by [`CompatHelper`](@ref).\n\n!!! note \"Only for GitHub actions\"\n    Currently, this plugin is configured to setup Dependabot only for the\n    GitHub actions package ecosystem. For example, it will create PRs whenever\n    GitHub actions such as `uses: actions/checkout@v5` can be updated to\n    `uses: actions/checkout@v6`. If you want to configure Dependabot to update\n    other package ecosystems, please modify the resulting file yourself.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `dependabot.yml`.\n\"\"\"\n@plugin struct Dependabot <: FilePlugin\n    file::String = default_file(\"github\", \"dependabot.yml\")\nend\n\nsource(p::Dependabot) = p.file\ndestination(::Dependabot) = joinpath(\".github\", \"dependabot.yml\")\n"
  },
  {
    "path": "src/plugins/develop.jl",
    "content": "\"\"\"\n    Develop()\n\nAdds generated packages to the current environment by `dev`ing them.\nSee the Pkg documentation\n[here](https://julialang.github.io/Pkg.jl/v1/managing-packages/#Developing-packages-1)\nfor more details.\n\"\"\"\nstruct Develop <: Plugin end\n\nfunction posthook(::Develop, ::Template, pkg_dir::AbstractString)\n    Pkg.develop(PackageSpec(; path=pkg_dir))\nend\n"
  },
  {
    "path": "src/plugins/documenter.jl",
    "content": "const DOCUMENTER_DEP = PackageSpec(;\n    name=\"Documenter\",\n    uuid=\"e30172f5-a6a5-5a46-863b-614d45cd2de4\",\n)\n\nstruct NoDeploy end\nconst YesDeploy = Union{TravisCI, GitHubActions, GitLabCI}\nconst GitHubPagesStyle = Union{TravisCI, GitHubActions}\n\n\"\"\"\n    Logo(; light=nothing, dark=nothing)\n\nLogo information for documentation.\n\n## Keyword Arguments\n- `light::AbstractString`: Path to a logo file for the light (default) theme.\n- `dark::AbstractString`: Path to a logo file for the dark theme.\n\"\"\"\n@with_kw_noshow struct Logo\n    light::Union{String, Nothing} = nothing\n    dark::Union{String, Nothing} = nothing\nend\n\n\"\"\"\n    Documenter{T}(;\n        make_jl=\"$(contractuser(default_file(\"docs\", \"make.jlt\")))\",\n        index_md=\"$(contractuser(default_file(\"docs\", \"src\", \"index.md\")))\",\n        assets=String[],\n        logo=Logo(),\n        canonical_url=make_canonical(T),\n        devbranch=nothing,\n        edit_link=:devbranch,\n        makedocs_kwargs=Dict{Symbol,Any}(),\n    )\n\nSets up documentation generation via [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).\nDocumentation deployment depends on `T`, where `T` is some supported CI plugin,\nor `Nothing` to only support local documentation builds.\n\n!!! note\n    If you are deploying documentation with GitHub Actions or Travis CI, don't forget to complete\n    [the required configuration](https://documenter.juliadocs.org/stable/man/hosting/#Hosting-Documentation).\n    In particular, you may need to run\n    ```julia\n    using DocumenterTools; DocumenterTools.genkeys(user=\"MyUser\", repo=\"MyPackage.jl\")\n    ```\n    and follow the instructions there.\n\n## Supported Type Parameters\n- `GitHubActions`: Deploys documentation to [GitHub Pages](https://pages.github.com)\n  with the help of [`GitHubActions`](@ref).\n- `TravisCI`: Deploys documentation to [GitHub Pages](https://pages.github.com)\n  with the help of [`TravisCI`](@ref).\n- `GitLabCI`: Deploys documentation to [GitLab Pages](https://pages.gitlab.com)\n  with the help of [`GitLabCI`](@ref).\n- `NoDeploy` (default): Does not set up documentation deployment.\n\n## Keyword Arguments\n- `make_jl::AbstractString`: Template file for `make.jl`.\n- `index_md::AbstractString`: Template file for `index.md`.\n- `assets::Vector{<:AbstractString}`: Extra assets for the generated site.\n- `logo::Logo`: A [`Logo`](@ref) containing documentation logo information.\n- `canonical_url::Union{Function, Nothing}`: A function to generate the site's canonical URL.\n  The default value will compute GitHub Pages and GitLab Pages URLs\n  for [`TravisCI`](@ref) and [`GitLabCI`](@ref), respectively.\n  If set to `nothing`, no canonical URL is set.\n- `edit_link::Union{AbstractString, Symbol, Nothing}`: Branch, tag or commit that the\n  \"Edit on…\" link will point to. Defaults to the branch identified by `devbranch`.\n  If `edit_link=:commit`, then the link will point to the latest commit when docs are built.\n  If `edit_link=nothing`, then the \"Edit on…\" link will be hidden altogether.\n- `devbranch::Union{AbstractString, Nothing}`: Branch that will trigger docs deployment.\n  If `nothing`, then the default branch according to the `Template` will be used.\n- `makedocs_kwargs::Dict{Symbol,Any}`: Extra keyword arguments to be inserted into `makedocs`.\n\"\"\"\nstruct Documenter{T} <: Plugin\n    assets::Vector{String}\n    logo::Logo\n    makedocs_kwargs::Dict{Symbol}\n    canonical_url::Union{Function, Nothing}\n    make_jl::String\n    index_md::String\n    devbranch::Union{String, Nothing}\n    edit_link::Union{String, Symbol, Nothing}\nend\n\n# Can't use @plugin because we're implementing our own no-arguments constructor.\nfunction Documenter{T}(;\n    assets::Vector{<:AbstractString}=String[],\n    logo::Logo=Logo(),\n    makedocs_kwargs::Dict{Symbol}=Dict{Symbol, Any}(),\n    canonical_url::Union{Function, Nothing}=make_canonical(T),\n    make_jl::AbstractString=default_file(\"docs\", \"make.jlt\"),\n    index_md::AbstractString=default_file(\"docs\", \"src\", \"index.md\"),\n    devbranch::Union{AbstractString, Nothing}=nothing,\n    edit_link::Union{AbstractString, Symbol, Nothing}=:devbranch,\n) where {T}\n    return Documenter{T}(\n        assets,\n        logo,\n        makedocs_kwargs,\n        canonical_url,\n        make_jl,\n        index_md,\n        devbranch,\n        edit_link,\n    )\nend\n\nDocumenter(; kwargs...) = Documenter{NoDeploy}(; kwargs...)\n\n# We have to define these manually because we didn't use @plugin.\ndefaultkw(::Type{<:Documenter}, ::Val{:assets}) = String[]\ndefaultkw(::Type{<:Documenter}, ::Val{:logo}) = Logo()\ndefaultkw(::Type{<:Documenter}, ::Val{:make_jl}) = default_file(\"docs\", \"make.jlt\")\ndefaultkw(::Type{<:Documenter}, ::Val{:index_md}) = default_file(\"docs\", \"src\", \"index.md\")\ndefaultkw(::Type{<:Documenter}, ::Val{:devbranch}) = nothing\ndefaultkw(::Type{<:Documenter}, ::Val{:edit_link}) = :devbranch\n\ngitignore(::Documenter) = [\"/docs/build/\", \"/docs/Manifest*.toml\"]\npriority(::Documenter, ::Function) = DEFAULT_PRIORITY - 1  # We need SrcDir to go first.\n\nbadges(::Documenter) = Badge[]\nbadges(::Documenter{<:GitHubPagesStyle}) = [\n    Badge(\n        \"Stable\",\n        \"https://img.shields.io/badge/docs-stable-blue.svg\",\n        \"https://{{{USER}}}.github.io/{{{PKG}}}.jl/stable/\",\n    ),\n    Badge(\n        \"Dev\",\n        \"https://img.shields.io/badge/docs-dev-blue.svg\",\n        \"https://{{{USER}}}.github.io/{{{PKG}}}.jl/dev/\",\n    ),\n]\nbadges(::Documenter{GitLabCI}) = Badge(\n    \"Dev\",\n    \"https://img.shields.io/badge/docs-dev-blue.svg\",\n    # TODO: Support custom domain here.\n    \"https://{{{USER}}}.gitlab.io/{{{PKG}}}.jl/dev\",\n)\n\nfunction view(p::Documenter, t::Template, pkg::AbstractString)\n    devbranch = p.devbranch === nothing ? default_branch(t) : p.devbranch\n    return Dict(\n        \"ASSETS\" => map(basename, p.assets),\n        \"AUTHORS\" => join(t.authors, \", \"),\n        \"CANONICAL\" => p.canonical_url === nothing ? nothing : p.canonical_url(t, pkg),\n        \"HAS_ASSETS\" => !isempty(p.assets),\n        \"MAKEDOCS_KWARGS\" => map(((k, v),) -> k => repr(v), sort(collect(p.makedocs_kwargs), by=first)),\n        \"PKG\" => pkg,\n        \"REPO\" => \"$(t.host)/$(t.user)/$pkg.jl\",\n        \"USER\" => t.user,\n        \"BRANCH\" => devbranch,\n        \"EDIT_LINK\" => p.edit_link == :devbranch ? _quoted(devbranch) : _quoted(p.edit_link),\n    )\nend\n\n# So both Symbol and Strings get interpolated correctly into `{{{s}}}`.\n_quoted(s::AbstractString) = string('\"', s, '\"')\n_quoted(s::Symbol) = repr(s)\n\nfunction view(p::Documenter{<:GitHubPagesStyle}, t::Template, pkg::AbstractString)\n    base = invoke(view, Tuple{Documenter, Template, AbstractString}, p, t, pkg)\n    return merge(base, Dict(\"HAS_DEPLOY\" => true))\nend\n\nfunction validate(p::Documenter, ::Template)\n    foreach(p.assets) do a\n        isfile(a) || throw(ArgumentError(\"Asset file $a does not exist\"))\n    end\n    foreach((:light, :dark)) do k\n        logo = getfield(p.logo, k)\n        if logo !== nothing && !isfile(logo)\n            throw(ArgumentError(\"Logo file $logo does not exist\"))\n        end\n    end\nend\n\nfunction validate(p::Documenter{T}, t::Template) where T <: YesDeploy\n    invoke(validate, Tuple{Documenter, Template}, p, t)\n    if !hasplugin(t, T)\n        name = nameof(T)\n        s = \"Documenter: The $name plugin must be included for docs deployment to be set up\"\n        throw(ArgumentError(s))\n    end\nend\n\nfunction hook(p::Documenter, t::Template, pkg_dir::AbstractString)\n    pkg = pkg_name(pkg_dir)\n    docs_dir = joinpath(pkg_dir, \"docs\")\n\n    # Generate files.\n    make = render_file(p.make_jl, combined_view(p, t, pkg), tags(p))\n    index = render_file(p.index_md, combined_view(p, t, pkg), tags(p))\n    gen_file(joinpath(docs_dir, \"make.jl\"), make)\n    gen_file(joinpath(docs_dir, \"src\", \"index.md\"), index)\n\n    # Copy over any assets.\n    assets_dir = joinpath(docs_dir, \"src\", \"assets\")\n    mkpath(assets_dir)\n    foreach(a -> cp(a, joinpath(assets_dir, basename(a))), p.assets)\n    foreach((:light => \"logo\", :dark => \"logo-dark\")) do (k, f)\n        logo = getfield(p.logo, k)\n        if logo !== nothing\n            _, ext = splitext(logo)\n            cp(logo, joinpath(assets_dir, \"$f$ext\"))\n        end\n    end\n    isempty(readdir(assets_dir)) && rm(assets_dir)\n\n    # Create the documentation project.\n    with_project(docs_dir) do\n        Pkg.add(DOCUMENTER_DEP)\n        cd(() -> Pkg.develop(PackageSpec(; path=\"..\")), docs_dir)\n    end\nend\n\ngithub_pages_url(t::Template, pkg::AbstractString) = \"https://$(t.user).github.io/$pkg.jl\"\ngitlab_pages_url(t::Template, pkg::AbstractString) = \"https://$(t.user).gitlab.io/$pkg.jl\"\n\nmake_canonical(::Type{<:GitHubPagesStyle}) = github_pages_url\nmake_canonical(::Type{GitLabCI}) = gitlab_pages_url\nmake_canonical(::Type{NoDeploy}) = nothing\n\nneeds_username(::Documenter) = true\n\nfunction customizable(::Type{<:Documenter})\n    return (:canonical_url => NotCustomizable, :makedocs_kwargs => NotCustomizable)\nend\n\nfunction interactive(::Type{Documenter})\n    styles = [NoDeploy, TravisCI, GitLabCI, GitHubActions]\n    menu = RadioMenu(map(string, styles); pagesize=length(styles))\n    println(\"Documenter deploy style:\")\n    idx = request(menu)\n    return interactive(Documenter{styles[idx]})\nend\n\nfunction prompt(::Type{<:Documenter}, ::Type{Logo}, ::Val{:logo})\n    light = Base.prompt(\"Enter value for 'logo.light' (default: nothing)\")\n    dark = Base.prompt(\"Enter value for 'logo.dark' (default: nothing)\")\n    return Logo(; light=light, dark=dark)\nend\n"
  },
  {
    "path": "src/plugins/formatter.jl",
    "content": "\"\"\"\n    Formatter(;\n        file=\"$(contractuser(default_file(\".JuliaFormatter.toml\")))\",\n        style=\"nostyle\"\n    )\n\nCreate a `.JuliaFormatter.toml` file, used by [JuliaFormatter.jl](https://github.com/domluna/JuliaFormatter.jl) and the Julia VSCode extension to configure automatic code formatting.\n\nThis file can be entirely customized by the user, see the [JuliaFormatter.jl docs](https://domluna.github.io/JuliaFormatter.jl/stable/).\n\n## Keyword Arguments\n- `file::String`: Template file for `.JuliaFormatter.toml`.\n- `style::String`: Style name, defaults to `\"nostyle\"` for an empty style but can also be one of `(\"sciml\", \"blue\", \"yas\")` for a fully preconfigured style.\n\"\"\"\n@plugin struct Formatter <: FilePlugin\n    file::String = default_file(\".JuliaFormatter.toml\")\n    style::String = \"nostyle\"\nend\n\nfunction validate(p::Formatter, t::Template)\n    if p.style ∉ (\"nostyle\", \"blue\", \"sciml\", \"yas\")\n        throw(ArgumentError(\"\"\"JuliaFormatter style must be either \"nostyle\", \"blue\", \"sciml\" or \"yas\".\"\"\"))\n    end\nend\n\nsource(p::Formatter) = p.file\ndestination(::Formatter) = \".JuliaFormatter.toml\"\n\nfunction view(p::Formatter, t::Template, pkg::AbstractString)\n    d = Dict{String,String}()\n    if p.style == \"nostyle\"\n        d[\"STYLE\"] = \"\"\n    else\n        d[\"STYLE\"] = \"\"\"style = \\\"$(p.style)\\\"\"\"\"\n    end\n    return d\nend\n\nfunction prompt(::Type{Formatter}, ::Type{String}, ::Val{:style})\n    options = [\"nostyle\", \"blue\", \"sciml\", \"yas\"]\n    menu = RadioMenu(options; pagesize=length(options))\n    println(\"Select a JuliaFormatter style:\")\n    idx = request(menu)\n    return options[idx]\nend\n\nstruct Runic{T} <: Plugin end\n\nRunic() = Runic{GitHubActions}()\n\nfunction validate(::Runic{T}, t::Template) where {T}\n    if T === GitHubActions\n        hasplugin(t, T) || throw(ArgumentError(\"Runic: The GitHubActions plugin must be included\"))\n    else\n        throw(ArgumentError(\"Runic: Only GitHubActions is supported at the moment\"))\n    end\nend\n"
  },
  {
    "path": "src/plugins/git.jl",
    "content": "const DEFAULT_DEFAULT_BRANCH = \"main\"\n\n\"\"\"\n    Git(;\n        ignore=String[],\n        name=nothing,\n        email=nothing,\n        branch=LibGit2.getconfig(\"init.defaultBranch\", \"$DEFAULT_DEFAULT_BRANCH\")\n        ssh=false,\n        jl=true,\n        manifest=false,\n        gpgsign=false,\n    )\n\nCreates a Git repository and a `.gitignore` file.\n\n## Keyword Arguments\n- `ignore::Vector{<:AbstractString}`: Patterns to add to the `.gitignore`.\n  See also: [`gitignore`](@ref).\n- `name::AbstractString`: Your real name, if you have not set `user.name` with Git.\n- `email::AbstractString`: Your email address, if you have not set `user.email` with Git.\n- `branch::AbstractString`: The desired name of the repository's default branch.\n- `ssh::Bool`: Whether or not to use SSH for the remote.\n  If left unset, HTTPS is used.\n- `jl::Bool`: Whether or not to add a `.jl` suffix to the remote URL.\n- `manifest::Bool`: Whether or not to commit `Manifest.toml`.\n- `gpgsign::Bool`: Whether or not to sign commits with your GPG key.\n  This option requires that the Git CLI is installed,\n  and for you to have a GPG key associated with your committer identity.\n\"\"\"\n@plugin struct Git <: Plugin\n    ignore::Vector{String} = String[]\n    name::Union{String, Nothing} = nothing\n    email::Union{String, Nothing} = nothing\n    branch::String = @mock(LibGit2.getconfig(\"init.defaultBranch\", DEFAULT_DEFAULT_BRANCH))\n    ssh::Bool = false\n    jl::Bool = true\n    manifest::Bool = false\n    gpgsign::Bool = false\nend\n\n# Try to make sure that no files are created after we commit.\npriority(::Git, ::typeof(posthook)) = 5\ngitignore(p::Git) = p.ignore\n\nfunction validate(p::Git, t::Template)\n    if p.gpgsign && !git_is_installed()\n        throw(ArgumentError(\"Git: gpgsign is set but the Git CLI is not installed\"))\n    end\n\n    foreach((:name, :email)) do k\n        user_k = \"user.$k\"\n        if getproperty(p, k) === nothing && isempty(@mock LibGit2.getconfig(user_k, \"\"))\n            throw(ArgumentError(\"Git: Global Git config is missing required value '$user_k'\"))\n        end\n    end\nend\n\n# Set up the Git repository.\nfunction prehook(p::Git, t::Template, pkg_dir::AbstractString)\n    LibGit2.with(@mock LibGit2.init(pkg_dir)) do repo\n        LibGit2.with(GitConfig(repo)) do config\n            foreach((:name, :email)) do k\n                v = getproperty(p, k)\n                v === nothing || LibGit2.set!(config, \"user.$k\", v)\n            end\n        end\n        commit(p, repo, pkg_dir, \"Initial commit\")\n        pkg = pkg_name(pkg_dir)\n        suffix = p.jl ? \".jl\" : \"\"\n        url = if p.ssh\n            \"git@$(t.host):$(t.user)/$pkg$suffix.git\"\n        else\n            \"https://$(t.host)/$(t.user)/$pkg$suffix\"\n        end\n        default = LibGit2.branch(repo)\n        branch = something(p.branch, default)\n        if branch != default\n            LibGit2.branch!(repo, branch)\n            delete_branch(GitReference(repo, \"refs/heads/$default\"))\n        end\n        close(GitRemote(repo, \"origin\", url))\n    end\nend\n\n# Create the .gitignore.\nfunction hook(p::Git, t::Template, pkg_dir::AbstractString)\n    ignore = mapreduce(gitignore, vcat, t.plugins)\n    # Only ignore manifests at the repo root.\n    p.manifest || \"Manifest.toml\" in ignore || push!(ignore, \"/Manifest*.toml\")\n    unique!(sort!(ignore))\n    gen_file(joinpath(pkg_dir, \".gitignore\"), join(ignore, \"\\n\"))\nend\n\n# Commit the files.\nfunction posthook(p::Git, ::Template, pkg_dir::AbstractString)\n    # Special case for issue 211.\n    if Sys.iswindows()\n        files = filter(f -> startswith(f, \"_git2_\"), readdir(pkg_dir))\n        foreach(f -> rm(joinpath(pkg_dir, f)), files)\n    end\n\n    # Ensure that the manifest exists if it's going to be committed.\n    manifest = joinpath(pkg_dir, \"Manifest.toml\")\n    if p.manifest && !isfile(manifest)\n        with_project(Pkg.update, pkg_dir)\n    end\n\n    LibGit2.with(GitRepo(pkg_dir)) do repo\n        LibGit2.add!(repo, \".\")\n        msg = \"Files generated by PkgTemplates\"\n        v = @mock version_of(\"PkgTemplates\")\n        v === nothing || (msg *= \"\\n\\nPkgTemplates version: $v\")\n        # TODO: Put the template config in the message too?\n        commit(p, repo, pkg_dir, msg)\n    end\nend\n\nfunction commit(p::Git, repo::GitRepo, pkg_dir::AbstractString, msg::AbstractString)\n    if p.gpgsign\n        run(pipeline(`git -C $pkg_dir commit -S --allow-empty -m $msg`; stdout=devnull))\n    else\n        LibGit2.commit(repo, msg)\n    end\nend\n\nneeds_username(::Git) = true\n\nfunction git_is_installed()\n    return try\n        run(pipeline(`git --version`; stdout=devnull))\n        true\n    catch\n        false\n    end\nend\n\nif isdefined(Pkg, :dependencies)\n    function version_of(pkg::AbstractString)\n        for p in values(Pkg.dependencies())\n            p.name == pkg && return p.version\n        end\n        return nothing\n    end\nelse\n    version_of(pkg::AbstractString) = get(Pkg.installed(), pkg, nothing)\nend\n"
  },
  {
    "path": "src/plugins/license.jl",
    "content": "\"\"\"\n    License(; name=\"MIT\", path=nothing, destination=\"LICENSE\")\n\nCreates a license file.\n\n## Keyword Arguments\n- `name::AbstractString`: Name of a license supported by PkgTemplates.\n  Available licenses can be seen\n  [here](https://github.com/JuliaCI/PkgTemplates.jl/tree/master/templates/licenses).\n- `path::Union{AbstractString, Nothing}`: Path to a custom license file.\n  This keyword takes priority over `name`.\n- `destination::AbstractString`: File destination, relative to the repository root.\n  For example, `\"LICENSE.md\"` might be desired.\n\"\"\"\nstruct License <: FilePlugin\n    path::String\n    destination::String\nend\n\nconst LICENSE_ALIASES = Dict(\n    # Legacy names kept for backward compatibility; prefer SPDX identifiers.\n    \"ASL\" => \"Apache-2.0\",\n    \"BSD2\" => \"BSD-2-Clause\",\n    \"BSD3\" => \"BSD-3-Clause\",\n    \"MPL\" => \"MPL-2.0\",\n    \"EUPL-1.2+\" => \"EUPL-1.2\",\n    \"AGPL-3.0+\" => \"AGPL-3.0-or-later\",\n    \"GPL-2.0+\" => \"GPL-2.0-or-later\",\n    \"GPL-3.0+\" => \"GPL-3.0-or-later\",\n    \"LGPL-2.1+\" => \"LGPL-2.1-or-later\",\n    \"LGPL-3.0+\" => \"LGPL-3.0-or-later\",\n)\n\nfunction License(;\n    name::AbstractString=\"MIT\",\n    path::Union{AbstractString, Nothing}=nothing,\n    destination::AbstractString=\"LICENSE\",\n)\n    if path === nothing\n        if haskey(LICENSE_ALIASES, name)\n            new = LICENSE_ALIASES[name]\n            Base.depwarn(\"License name \\\"$name\\\" is deprecated; use \\\"$new\\\" instead.\", :License)\n            name = new\n        end\n        path = default_file(\"licenses\", name)\n        isfile(path) || throw(ArgumentError(\"License '$(basename(path))' is not available\"))\n    end\n    return License(path, destination)\nend\n\ndefaultkw(::Type{License}, ::Val{:path}) = nothing\ndefaultkw(::Type{License}, ::Val{:name}) = \"MIT\"\ndefaultkw(::Type{License}, ::Val{:destination}) = \"LICENSE\"\n\nsource(p::License) = p.path\ndestination(p::License) = p.destination\nview(::License, t::Template, ::AbstractString) = Dict(\n    \"AUTHORS\" => join(t.authors, \", \"),\n    \"YEAR\" => year(today()),\n)\n\nfunction prompt(::Type{License}, ::Type, ::Val{:name})\n    options = readdir(default_file(\"licenses\"))\n    # Move MIT to the top.\n    deleteat!(options, findfirst(==(\"MIT\"), options))\n    pushfirst!(options, \"MIT\")\n    menu = RadioMenu(options; pagesize=length(options))\n    println(\"Select a license:\")\n    idx = request(menu)\n    return options[idx]\nend\n\ncustomizable(::Type{License}) = (:name => String,)\n"
  },
  {
    "path": "src/plugins/pkgbenchmark.jl",
    "content": "\"\"\"\n    PkgBenchmark(; file=\"$(contractuser(default_file(\"benchmark\", \"benchmarks.jlt\")))\")\n\nSets up a [PkgBenchmark.jl](https://github.com/JuliaCI/PkgBenchmark.jl) benchmark suite.\n\nTo ensure benchmark reproducibility, you will need to manually create an environment in the `benchmark` subfolder (for which the `Manifest.toml` is committed to version control).\nIn this environment, you should at the very least:\n\n- `pkg> add BenchmarkTools`\n- `pkg> dev` your new package.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `benchmarks.jl`.\n\"\"\"\n@plugin struct PkgBenchmark <: FilePlugin\n    file::String = default_file(\"benchmark\", \"benchmarks.jlt\")\nend\n\nsource(p::PkgBenchmark) = p.file\ndestination(::PkgBenchmark) = joinpath(\"benchmark\", \"benchmarks.jl\")\nview(::PkgBenchmark, ::Template, pkg::AbstractString) = Dict(\"PKG\" => pkg)\n"
  },
  {
    "path": "src/plugins/project_file.jl",
    "content": "\"\"\"\n    ProjectFile(; version=v\"1.0.0-DEV\")\n\nCreates a `Project.toml`.\n\n## Keyword Arguments\n- `version::VersionNumber`: The initial version of created packages.\n\"\"\"\n@plugin struct ProjectFile <: Plugin\n    version::VersionNumber = v\"1.0.0-DEV\"\nend\n\n# Other plugins like Tests will modify this file.\npriority(::ProjectFile, ::typeof(hook)) = typemax(Int) - 5\n\nfunction hook(p::ProjectFile, t::Template, pkg_dir::AbstractString)\n    toml = Dict(\n        \"name\" => pkg_name(pkg_dir),\n        \"uuid\" => string(@mock uuid4()),\n        \"authors\" => t.authors,\n        \"version\" => string(p.version),\n        \"compat\" => Dict(\"julia\" => compat_version(t.julia)),\n    )\n    write_project(joinpath(pkg_dir, \"Project.toml\"), toml)\nend\n\n# Taken from:\n# https://github.com/JuliaLang/Pkg.jl/blob/v1.7.0/src/project.jl#L175-L177\n\nfunction project_key_order(key::String)\n    _project_key_order = [\"name\", \"uuid\", \"keywords\", \"license\", \"desc\", \"deps\", \"compat\"]\n    return something(findfirst(x -> x == key, _project_key_order), length(_project_key_order) + 1)\nend\n\nwrite_project(path::AbstractString, dict) =\n    open(io -> write_project(io, dict), path; write = true)\nwrite_project(io::IO, dict) =\n    TOML.print(io, dict, sorted = true, by = key -> (project_key_order(key), key))\n\n\"\"\"\n    compat_version(v::VersionNumber) -> String\n\nFormat a `VersionNumber` to exclude trailing zero components.\n\"\"\"\nfunction compat_version(v::VersionNumber)\n    return if v.patch == 0 && v.minor == 0\n        \"$(v.major)\"\n    elseif v.patch == 0\n        \"$(v.major).$(v.minor)\"\n    else\n        \"$(v.major).$(v.minor).$(v.patch)\"\n    end\nend\n"
  },
  {
    "path": "src/plugins/readme.jl",
    "content": "\"\"\"\n    Readme(;\n        file=\"$(contractuser(default_file(\"README.md\")))\",\n        destination=\"README.md\",\n        inline_badges=false,\n    )\n\nCreates a `README` file that contains badges for other included plugins.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for the `README`.\n- `destination::AbstractString`: File destination, relative to the repository root.\n  For example, values of `\"README\"` or `\"README.rst\"` might be desired.\n- `inline_badges::Bool`: Whether or not to put the badges on the same line as the package name.\n- `badge_order::Vector{typeof(Plugin)}`: Plugins in the order their badges should appear.\n- `badge_off::Vector{typeof(Plugin)}`: Plugins which should not have their badges added.\n\"\"\"\n@plugin struct Readme <: FilePlugin\n    file::String = default_file(\"README.md\")\n    destination::String = \"README.md\"\n    inline_badges::Bool = false\n    badge_order::Vector{typeof(Plugin)} = default_badge_order()\n    badge_off::Vector{typeof(Plugin)} = []\nend\n\nsource(p::Readme) = p.file\ndestination(p::Readme) = p.destination\n\nfunction view(p::Readme, t::Template, pkg::AbstractString)\n    # Explicitly ordered badges go first.\n    strings = String[]\n    done = DataType[]\n    foreach(p.badge_order) do T\n        if hasplugin(t, T) && !in(T, p.badge_off)\n            append!(strings, badges(getplugin(t, T), t, pkg))\n            push!(done, T)\n        end\n    end\n    # And the rest go after, in no particular order.\n    foreach(setdiff(map(typeof, t.plugins), done)) do T\n        if !in(T, p.badge_off)\n            append!(strings, badges(getplugin(t, T), t, pkg))\n        end\n    end\n\n    return Dict(\n        \"BADGES\" => strings,\n        \"HAS_CITATION\" => hasplugin(t, Citation) && getplugin(t, Citation).readme,\n        \"HAS_INLINE_BADGES\" => !isempty(strings) && p.inline_badges,\n        \"PKG\" => pkg,\n    )\nend\n\ndefault_badge_order() = [\n    Documenter{GitHubActions},\n    Documenter{GitLabCI},\n    Documenter{TravisCI},\n    GitHubActions,\n    GitLabCI,\n    TravisCI,\n    AppVeyor,\n    DroneCI,\n    CirrusCI,\n    Codecov,\n    Coveralls,\n    subtypes(BadgePlugin)...\n]\n"
  },
  {
    "path": "src/plugins/register.jl",
    "content": "\"\"\"\n    RegisterAction(;\n        file=\"$(contractuser(default_file(\"github\", \"workflows\", \"Register.yml\")))\",\n        destination=\"Register.yml\",\n        prompt=\"Version to register or component to bump\",\n    )\n\nAdd a GitHub Actions workflow for registering a package with the General registry via workflow dispatch.\nSee [here](https://github.com/julia-actions/RegisterAction) for more information.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for the workflow file.\n- `destination::AbstractString`: Destination of the workflow file,\n  relative to `.github/workflows`.\n- `prompt::AbstractString`: Prompt for workflow dispatch.\n\"\"\"\n@plugin struct RegisterAction <: FilePlugin\n    file::String = default_file(\"github\", \"workflows\", \"Register.yml\")\n    destination::String = \"Register.yml\"\n    prompt::String = \"Version to register or component to bump\"\nend\n\nsource(p::RegisterAction) = p.file\ndestination(p::RegisterAction) = joinpath(\".github\", \"workflows\", p.destination)\ntags(::RegisterAction) = \"<<\", \">>\"\n\nview(p::RegisterAction, ::Template, ::AbstractString) = Dict(\"PROMPT\" => p.prompt)\n"
  },
  {
    "path": "src/plugins/src_dir.jl",
    "content": "\"\"\"\n    SrcDir(; file=\"$(contractuser(default_file(\"src\", \"module.jlt\")))\")\n\nCreates a module entrypoint.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `src/<module>.jl`.\n\"\"\"\n@plugin mutable struct SrcDir <: FilePlugin\n    file::String = default_file(\"src\", \"module.jlt\")\n    destination::String = \"\"\nend\n\nBase.:(==)(a::SrcDir, b::SrcDir) = a.file == b.file\n\n# Don't display the destination field.\nfunction Base.show(io::IO, ::MIME\"text/plain\", p::SrcDir)\n    indent = get(io, :indent, 0)\n    print(io, repeat(' ', indent), \"SrcDir:\")\n    print(io, \"\\n\", repeat(' ', indent + 2), \"file: \", show_field(p.file))\nend\n\nsource(p::SrcDir) = p.file\ndestination(p::SrcDir) = p.destination\nview(::SrcDir, ::Template, pkg::AbstractString) = Dict(\"PKG\" => pkg)\n\n# Update the destination now that we know the package name.\n# Kind of hacky, but oh well.\nfunction prehook(p::SrcDir, ::Template, pkg_dir::AbstractString)\n    p.destination = joinpath(\"src\", pkg_name(pkg_dir) * \".jl\")\nend\n"
  },
  {
    "path": "src/plugins/tagbot.jl",
    "content": "\"\"\"\n    TagBot(;\n        file=\"$(contractuser(default_file(\"github\", \"workflows\", \"TagBot.yml\")))\",\n        destination=\"TagBot.yml\",\n        trigger=\"JuliaTagBot\",\n        token=Secret(\"GITHUB_TOKEN\"),\n        ssh=Secret(\"DOCUMENTER_KEY\"),\n        ssh_password=nothing,\n        changelog=nothing,\n        changelog_ignore=nothing,\n        gpg=nothing,\n        gpg_password=nothing,\n        registry=nothing,\n        branches=nothing,\n        dispatch=nothing,\n        dispatch_delay=nothing,\n    )\n\nAdds GitHub release support via [TagBot](https://github.com/JuliaRegistries/TagBot).\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for the workflow file.\n- `destination::AbstractString`: Destination of the workflow file, relative to `.github/workflows`.\n- `trigger::AbstractString`: Username of the trigger user for custom registries.\n- `token::Secret`: Name of the token secret to use.\n- `ssh::Secret`: Name of the SSH private key secret to use.\n- `ssh_password::Secret`: Name of the SSH key password secret to use.\n- `changelog::AbstractString`: Custom changelog template.\n- `changelog_ignore::Vector{<:AbstractString}`: Issue/pull request labels to ignore in the changelog.\n- `gpg::Secret`: Name of the GPG private key secret to use.\n- `gpg_password::Secret`: Name of the GPG private key password secret to use.\n- `registry::AbstractString`: Custom registry, in the format `owner/repo`.\n- `branches::Bool`: Whether or not to enable the `branches` option.\n- `dispatch::Bool`: Whether or not to enable the `dispatch` option.\n- `dispatch_delay::Int`: Number of minutes to delay for dispatch events.\n\"\"\"\n@plugin struct TagBot <: FilePlugin\n    file::String = default_file(\"github\", \"workflows\", \"TagBot.yml\")\n    destination::String = \"TagBot.yml\"\n    trigger::String = \"JuliaTagBot\"\n    token::Secret = Secret(\"GITHUB_TOKEN\")\n    ssh::Union{Secret, Nothing} = Secret(\"DOCUMENTER_KEY\")\n    ssh_password::Union{Secret, Nothing} = nothing\n    changelog::Union{String, Nothing} = nothing\n    changelog_ignore::Union{Vector{String}, Nothing} = nothing\n    gpg::Union{Secret, Nothing} = nothing\n    gpg_password::Union{Secret, Nothing} = nothing\n    registry::Union{String, Nothing} = nothing\n    branches::Union{Bool, Nothing} = nothing\n    dispatch::Union{Bool, Nothing} = nothing\n    dispatch_delay::Union{Int, Nothing} = nothing\nend\n\nsource(p::TagBot) = p.file\ndestination(p::TagBot) = joinpath(\".github\", \"workflows\", p.destination)\n\nfunction view(p::TagBot, ::Template, ::AbstractString)\n    changelog = if p.changelog === nothing\n        nothing\n    else\n        # This magic number aligns the text block just right.\n        lines = map(line -> rstrip(repeat(' ', 12) * line), split(p.changelog, \"\\n\"))\n        \"|\\n\" * join(lines, \"\\n\")\n    end\n    ignore = p.changelog_ignore === nothing ? nothing : join(p.changelog_ignore, \", \")\n\n    return Dict(\n        \"BRANCHES\" => p.branches === nothing ? nothing : string(p.branches),\n        \"CHANGELOG\" => changelog,\n        \"CHANGELOG_IGNORE\" => ignore,\n        \"TRIGGER\" => p.trigger,\n        \"DISPATCH\" => p.dispatch === nothing ? nothing : string(p.dispatch),\n        \"DISPATCH_DELAY\" => p.dispatch_delay,\n        \"GPG\" => p.gpg,\n        \"GPG_PASSWORD\" => p.gpg_password,\n        \"REGISTRY\" => p.registry,\n        \"SSH\" => p.ssh,\n        \"SSH_PASSWORD\" => p.ssh_password,\n        \"TOKEN\" => p.token,\n    )\nend\n"
  },
  {
    "path": "src/plugins/tests.jl",
    "content": "const TEST_UUID = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\nconst TEST_DEP = PackageSpec(; name=\"Test\", uuid=TEST_UUID)\n\nconst AQUA_UUID = \"4c88cf16-eb10-579e-8560-4a9242c79595\"\nconst AQUA_DEP = PackageSpec(; name=\"Aqua\", uuid=AQUA_UUID)\n\nconst JET_UUID = \"c3a54625-cd67-489e-a8e7-0a5a0ff4e31b\"\nconst JET_DEP = PackageSpec(; name=\"JET\", uuid=JET_UUID)\n\n\"\"\"\n    Tests(;\n        file=\"$(contractuser(default_file(\"test\", \"runtests.jlt\")))\",\n        project=false,\n        aqua=false,\n        aqua_kwargs=NamedTuple(),\n        jet=false,\n    )\n\nSets up testing for packages.\n\n## Keyword Arguments\n- `file::AbstractString`: Template file for `runtests.jl`.\n- `project::Bool`: Whether or not to create a new project for tests (`test/Project.toml`).\n  See [the Pkg docs](https://julialang.github.io/Pkg.jl/v1/creating-packages/#Test-specific-dependencies-in-Julia-1.2-and-above-1)\n  for more details.\n- `aqua::Bool`: Controls whether or not to add quality tests with [Aqua.jl](https://github.com/JuliaTesting/Aqua.jl).\n- `aqua_kwargs::NamedTuple`: Which keyword arguments to supply to Aqua tests (many people use `ambiguities=false` for example)\n- `jet::Bool`: Controls whether or not to add a linting test with [JET.jl](https://github.com/aviatesk/JET.jl) (works best on type-stable code)\n\n!!! note\n    Managing test dependencies with `test/Project.toml` is only supported\n    in Julia 1.2 and later.\n\"\"\"\n@plugin struct Tests <: FilePlugin\n    file::String = default_file(\"test\", \"runtests.jlt\")\n    project::Bool = false\n    aqua::Bool = false\n    aqua_kwargs::NamedTuple = NamedTuple()\n    jet::Bool = false\nend\n\nsource(p::Tests) = p.file\ndestination(::Tests) = joinpath(\"test\", \"runtests.jl\")\n\nfunction view(p::Tests, ::Template, pkg::AbstractString)\n    d = Dict(\"PKG\" => pkg)\n    if p.aqua\n        if isempty(p.aqua_kwargs)\n            kwargs_str = \"\"\n        else\n            kwargs_str = \"; \" * strip(string(p.aqua_kwargs), ['(', ')'])\n        end\n        d[\"AQUA_IMPORT\"] = \"\\nusing Aqua\"\n        d[\"AQUA_TESTSET\"] = \"\"\"\n        @testset \"Code quality (Aqua.jl)\" begin\n                Aqua.test_all($pkg$kwargs_str)\n            end\n            \"\"\"\n    else\n        d[\"AQUA_IMPORT\"] = \"\"\n        d[\"AQUA_TESTSET\"] = \"\"\n    end\n    if p.jet\n        d[\"JET_IMPORT\"] = \"\\nusing JET\"\n        d[\"JET_TESTSET\"] = \"\"\"\n        @testset \"Code linting (JET.jl)\" begin\n                JET.test_package($pkg; target_defined_modules = true)\n            end\n            \"\"\"\n    else\n        d[\"JET_IMPORT\"] = \"\"\n        d[\"JET_TESTSET\"] = \"\"\n    end\n    return d\nend\n\nfunction validate(p::Tests, t::Template)\n    invoke(validate, Tuple{FilePlugin,Template}, p, t)\n    p.project && t.julia < v\"1.2\" && @warn string(\n            \"Tests: The project option is set to create a project (supported in Julia 1.2 and later) \",\n            \"but a Julia version older than 1.2 ($(t.julia)) is supported by the template\",\n        )\n    aqua_kwargs_names = (\n        :ambiguities,\n        :unbound_args,\n        :undefined_exports,\n        :piracy,\n        :project_extras,\n        :stale_deps,\n        :deps_compat,\n        :project_toml_formatting,\n    )\n    for (key, val) in pairs(p.aqua_kwargs)\n        if !(val isa Bool)\n            throw(ArgumentError(\"Aqua keyword arguments must have boolean values\"))\n        elseif !(key in aqua_kwargs_names)\n            throw(ArgumentError(\"Aqua keyword arguments must belong to $aqua_kwargs_names\"))\n        end\n    end\nend\n\nfunction hook(p::Tests, t::Template, pkg_dir::AbstractString)\n    # Do the normal FilePlugin behaviour to create the test script.\n    invoke(hook, Tuple{FilePlugin,Template,AbstractString}, p, t, pkg_dir)\n\n    # Then set up the test depdendency in the chosen way.\n    if p.project\n        make_test_project(p, pkg_dir)\n    else\n        add_test_dependency(p, pkg_dir)\n    end\nend\n\n# Create a new test project.\nfunction make_test_project(p::Tests, pkg_dir::AbstractString)\n    with_project(() -> Pkg.add(TEST_DEP), joinpath(pkg_dir, \"test\"))\n    if p.aqua\n        with_project(() -> Pkg.add(AQUA_DEP), joinpath(pkg_dir, \"test\"))\n    end\n    if p.jet\n        with_project(() -> Pkg.add(JET_DEP), joinpath(pkg_dir, \"test\"))\n    end\nend\n\n# Add Test as a test-only dependency.\nfunction add_test_dependency(p::Tests, pkg_dir::AbstractString)\n    # Add the dependency manually since there's no programmatic way to add to [extras].\n    path = joinpath(pkg_dir, \"Project.toml\")\n    toml = TOML.parsefile(path)\n    \n    get!(toml, \"extras\", Dict())[\"Test\"] = TEST_UUID\n    if p.aqua\n        get!(toml, \"extras\", Dict())[\"Aqua\"] = AQUA_UUID\n    end\n    if p.jet\n        get!(toml, \"extras\", Dict())[\"JET\"] = JET_UUID\n    end\n    \n    targets = String[]\n    if p.aqua\n        push!(targets, \"Aqua\")\n    end\n    if p.jet\n        push!(targets, \"JET\")\n    end\n    push!(targets, \"Test\")\n    get!(toml, \"targets\", Dict())[\"test\"] = targets\n    \n    write_project(path, toml)\n\n    # Generate the manifest by updating the project.\n    with_project(Pkg.update, pkg_dir)\nend\n\nfunction badges(p::Tests)\n    bs = Badge[]\n    if p.aqua\n        b = Badge(\n            \"Aqua\",\n            \"https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg\",\n            \"https://github.com/JuliaTesting/Aqua.jl\",\n        )\n        push!(bs, b)\n    end\n    return bs\nend\n"
  },
  {
    "path": "src/show.jl",
    "content": "function Base.show(io::IO, m::MIME\"text/plain\", t::Template)\n    println(io, \"Template:\")\n    foreach(fieldnames(Template)) do n\n        n === :plugins || println(io, repeat(' ', 2), n, \": \", show_field(getfield(t, n)))\n    end\n    if isempty(t.plugins)\n        print(io, \"  plugins: None\")\n    else\n        print(io, repeat(' ', 2), \"plugins:\")\n        foreach(sort(t.plugins; by=string)) do p\n            println(io)\n            show(IOContext(io, :indent => 4), m, p)\n        end\n    end\nend\n\nfunction Base.show(io::IO, ::MIME\"text/plain\", p::T) where T <: Plugin\n    indent = get(io, :indent, 0)\n    print(io, repeat(' ', indent), nameof(T))\n    ns = fieldnames(T)\n    isempty(ns) || print(io, \":\")\n    foreach(ns) do n\n        println(io)\n        print(io, repeat(' ', indent + 2), n, \": \", show_field(getfield(p, n)))\n    end\nend\n\nshow_field(x) = repr(x)\nif Sys.iswindows()\n    show_field(x::AbstractString) = replace(repr(contractuser(x)), \"\\\\\\\\\" => \"\\\\\")\nelse\n    show_field(x::AbstractString) = repr(contractuser(x))\nend\n"
  },
  {
    "path": "src/template.jl",
    "content": "default_user() = LibGit2.getconfig(\"github.user\", \"\")\ndefault_version() = v\"1.10.10\"  # LTS as of June 2025, see https://julialang.org/downloads/#long_term_support_release\ndefault_plugins() = [\n    ProjectFile(),\n    SrcDir(),\n    Git(),\n    License(),\n    Readme(),\n    Tests(),\n    TagBot(),\n    GitHubActions(),\n    Dependabot(),\n]\n\nfunction default_authors()\n    name = LibGit2.getconfig(\"user.name\", \"\")\n    isempty(name) && return \"contributors\"\n    email = LibGit2.getconfig(\"user.email\", \"\")\n    authors = isempty(email) ? name : \"$name <$email>\"\n    return \"$authors and contributors\"\nend\n\nstruct MissingUserException{T} <: Exception end\nfunction Base.showerror(io::IO, ::MissingUserException{T}) where T\n    s = \"\"\"$(nameof(T)): Git hosting service username is required, set one with keyword `user=\"<username>\"`\"\"\"\n    print(io, s)\nend\n\n\"\"\"\n    Template(; kwargs...)\n\nA configuration used to generate packages.\n\n## Keyword Arguments\n\n### User Options\n- `user::AbstractString=\"$(default_user())\"`: GitHub (or other code hosting service) username.\n  The default value comes from the global Git config (`github.user`).\n  If no value is obtained, many plugins that use this value will not work.\n- `authors::Union{AbstractString, Vector{<:AbstractString}}=\"$(default_authors())\"`: Package authors.\n  Like `user`, it takes its default value from the global Git config\n  (`user.name` and `user.email`).\n\n### Package Options\n- `dir::AbstractString=\"$(contractuser(Pkg.devdir()))\"`: Directory to place packages in.\n- `host::AbstractString=\"github.com\"`: URL to the code hosting service where packages will reside.\n- `julia::VersionNumber=$(repr(default_version()))`: Minimum allowed Julia version.\n\n### Template Plugins\n- `plugins::Vector{<:Plugin}=Plugin[]`: A list of [`Plugin`](@ref)s used by the template.\n  The default plugins are [`ProjectFile`](@ref), [`SrcDir`](@ref), [`Tests`](@ref),\n  [`Readme`](@ref), [`License`](@ref), [`Git`](@ref), [`Dependabot`](@ref),\n  [`TagBot`](@ref) and [`GitHubActions`](@ref).\n  To disable a default plugin, pass in the negated type: `!PluginType`.\n  To override a default plugin instead of disabling it, pass in your own instance.\n\n### Interactive Mode\n- `interactive::Bool=false`: In addition to specifying the template options with keywords,\n  you can also build up a template by following a set of prompts.\n  To create a template interactively, set this keyword to `true`.\n  See also the similar [`generate`](@ref) function.\n\n---\n\nTo create a package from a `Template`, use the following syntax:\n\n```julia\njulia> t = Template();\n\njulia> t(\"PkgName\")\n```\n\"\"\"\nstruct Template\n    authors::Vector{String}\n    dir::String\n    host::String\n    julia::VersionNumber\n    plugins::Vector{<:Plugin}\n    user::String\nend\n\nTemplate(; interactive::Bool=false, kwargs...) = Template(Val(interactive); kwargs...)\nTemplate(::Val{true}; kwargs...) = interactive(Template; kwargs...)\n\nfunction Template(::Val{false}; kwargs...)\n    kwargs = Dict(kwargs)\n\n    user = @mock getkw!(kwargs, :user)\n    dir = abspath(expanduser(getkw!(kwargs, :dir)))\n    host = replace(getkw!(kwargs, :host), r\".*://\" => \"\")\n    julia = getkw!(kwargs, :julia)\n\n    authors = getkw!(kwargs, :authors)\n    authors isa Vector || (authors = map(strip, split(authors, \",\")))\n\n    plugins = Vector{Any}(collect(getkw!(kwargs, :plugins)))\n    disabled = map(d -> first(typeof(d).parameters), filter(p -> p isa Disabled, plugins))\n    filter!(p -> p isa Plugin, plugins)\n    # Remove a default if the user has specified (or disabled) a plugin of that type.\n    defaults = filter(default_plugins()) do p\n        !(typeof(p) in vcat(typeof.(plugins), disabled))\n    end\n    append!(plugins, defaults)\n    plugins = Vector{Plugin}(sort(plugins; by=string))\n\n    if isempty(user)\n        foreach(plugins) do p\n            needs_username(p) && throw(MissingUserException{typeof(p)}())\n        end\n    end\n\n    if !isempty(kwargs)\n        @warn \"Unrecognized keywords were supplied, see the documentation for help\" kwargs\n    end\n\n    t = Template(authors, dir, host, julia, plugins, user)\n    foreach(p -> validate(p, t), t.plugins)\n    return t\nend\n\n\"\"\"\n    (::Template)(pkg::AbstractString)\n\nGenerate a package named `pkg` from a [`Template`](@ref).\n\nReturn the path to the package directory.\n\"\"\"\nfunction (t::Template)(pkg::AbstractString)\n    _valid_pkg_name(pkg)\n    pkg_dir = joinpath(t.dir, pkg)\n    ispath(pkg_dir) && throw(ArgumentError(\"$pkg_dir already exists\"))\n    mkpath(pkg_dir)\n\n    try\n        foreach((prehook, hook, posthook)) do h\n            @info \"Running $(nameof(h))s\"\n            foreach(sort(t.plugins; by=p -> priority(p, h), rev=true)) do p\n                h(p, t, pkg_dir)\n            end\n        end\n    catch\n        rm(pkg_dir; recursive=true, force=true)\n        rethrow()\n    end\n\n    @info \"New package is at $pkg_dir\"\n    return pkg_dir\nend\n\nfunction _valid_pkg_name(pkg::AbstractString)\n    if endswith(pkg, \".jl\")\n        pkg = splitext(pkg)[1]\n    end\n    if repr(Symbol(pkg)) ≠ \":$(pkg)\"\n        throw(ArgumentError(\"The package name is invalid\"))\n    end\nend\n\nfunction Base.:(==)(a::Template, b::Template)\n    return a.authors == b.authors &&\n        a.dir == b.dir &&\n        a.host == b.host &&\n        a.julia == b.julia &&\n        a.user == b.user &&\n        all(map(==, a.plugins, b.plugins))\nend\n\n# Does the template have a plugin that satisfies some predicate?\nhasplugin(t::Template, f::Function) = any(f, t.plugins)\nhasplugin(t::Template, ::Type{T}) where T <: Plugin = hasplugin(t, p -> p isa T)\n\n\"\"\"\n    getplugin(t::Template, ::Type{T<:Plugin}) -> Union{T, Nothing}\n\nGet the plugin of type `T` from the template `t`, if it's present.\n\"\"\"\nfunction getplugin(t::Template, ::Type{T}) where T <: Plugin\n    i = findfirst(p -> p isa T, t.plugins)\n    return i === nothing ? nothing : t.plugins[i]\nend\n\n# Get a keyword or a default value.\ngetkw!(kwargs, k) = pop!(kwargs, k, defaultkw(Template, k))\n\n# Default Template keyword values.\ndefaultkw(::Type{T}, s::Symbol) where T = defaultkw(T, Val(s))\ndefaultkw(::Type{Template}, ::Val{:authors}) = default_authors()\ndefaultkw(::Type{Template}, ::Val{:dir}) = contractuser(Pkg.devdir())\ndefaultkw(::Type{Template}, ::Val{:host}) = \"github.com\"\ndefaultkw(::Type{Template}, ::Val{:julia}) = default_version()\ndefaultkw(::Type{Template}, ::Val{:plugins}) = Plugin[]\ndefaultkw(::Type{Template}, ::Val{:user}) = default_user()\n\nfunction interactive(::Type{Template}; kwargs...)\n    # If the user supplied any keywords themselves, don't prompt for them.\n    kwargs = Dict{Symbol, Any}(kwargs)\n    options = [:user, :authors, :dir, :host, :julia, :plugins]\n    customizable = setdiff(options, keys(kwargs))\n\n    # Make sure we don't try to show a menu with < 2 options.\n    isempty(customizable) && return Template(; kwargs...)\n    just_one = length(customizable) == 1\n    just_one && push!(customizable, :none)\n\n    try\n        println(\"Template keywords to customize:\")\n        opts = map(k -> \"$k ($(repr(defaultkw(Template, k))))\" , customizable)\n        menu = MultiSelectMenu(opts; pagesize=length(customizable))\n        customize = customizable[sort!(collect(request(menu)))]\n        just_one && last(customizable) in customize && return Template(; kwargs...)\n\n        # Prompt for each keyword.\n        foreach(customize) do k\n            kwargs[k] = prompt(Template, fieldtype(Template, k), k)\n        end\n\n        while true\n            try\n                return Template(; kwargs...)\n            catch e\n                e isa MissingUserException || rethrow()\n                kwargs[:user] = prompt(Template, String, :user)\n            end\n        end\n    catch e\n        e isa InterruptException || rethrow()\n        println()\n        @info \"Cancelled\"\n        return nothing\n    end\nend\n\nprompt(::Type{Template}, ::Type, ::Val{:pkg}) = Base.prompt(\"Package name\")\n\nfunction prompt(::Type{Template}, ::Type, ::Val{:user})\n    return if isempty(@mock default_user())\n        input = Base.prompt(\"Enter value for 'user' (required)\")\n        input === nothing && throw(InterruptException())\n        return input\n    else\n        fallback_prompt(String, :user)\n    end\nend\n\nfunction prompt(::Type{Template}, ::Type, ::Val{:host})\n    hosts = [\"github.com\", \"gitlab.com\", \"bitbucket.org\", \"Other\"]\n    menu = RadioMenu(hosts; pagesize=length(hosts))\n    println(\"Select Git repository hosting service:\")\n    idx = request(menu)\n    return if idx == lastindex(hosts)\n        fallback_prompt(String, :host)\n    else\n        hosts[idx]\n    end\nend\n\nfunction prompt(::Type{Template}, ::Type, ::Val{:julia})\n    versions = map(format_version, VersionNumber.(1, 0:VERSION.minor))\n    push!(versions, \"Other\")\n    menu = RadioMenu(map(string, versions); pagesize=length(versions))\n    println(\"Select minimum Julia version:\")\n    idx = request(menu)\n    return if idx == lastindex(versions)\n        fallback_prompt(VersionNumber, :julia)\n    else\n        VersionNumber(versions[idx])\n    end\nend\n\nconst CR = \"\\r\"\nconst DOWN = \"\\eOB\"\n\nfunction prompt(::Type{Template}, ::Type, ::Val{:plugins})\n    defaults = map(typeof, default_plugins())\n    ndefaults = length(defaults)\n    # Put the defaults first.\n    options = unique!([defaults; concretes(Plugin)])\n    menu = MultiSelectMenu(map(T -> string(nameof(T)), options); pagesize=length(options))\n    println(\"Select plugins:\")\n    # Pre-select the default plugins and move the cursor to the first non-default.\n    # To make this better, we need julia#30043.\n    print(stdin.buffer, (CR * DOWN)^ndefaults)\n    types = sort!(collect(request(menu)))\n    plugins = Vector{Any}(map(interactive, options[types]))\n    # Find any defaults that were disabled.\n    foreach(i -> i in types || push!(plugins, !defaults[i]), 1:ndefaults)\n    return plugins\nend\n\n# Call the default prompt method even if a specialized one exists.\nfallback_prompt(T::Type, name::Symbol) = prompt(Template, T, Val(name), nothing)\n\nfunction default_branch(t::Template)\n    git = getplugin(t, Git)\n    return git === nothing ? nothing : git.branch\nend\n"
  },
  {
    "path": "templates/.JuliaFormatter.toml",
    "content": "# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options\n{{{STYLE}}}\n"
  },
  {
    "path": "templates/CITATION.bib",
    "content": "@misc{<<&PKG>>.jl,\n\tauthor  = {<<&AUTHORS>>},\n\ttitle   = {<<&PKG>>.jl},\n\turl     = {<<&URL>>},\n\tversion = {<<&VERSION>>},\n\tyear    = {<<&YEAR>>},\n\tmonth   = {<<&MONTH>>}\n}\n"
  },
  {
    "path": "templates/README.md",
    "content": "# {{{PKG}}}{{#HAS_INLINE_BADGES}} {{#BADGES}}{{{.}}} {{/BADGES}}{{/HAS_INLINE_BADGES}}\n{{^HAS_INLINE_BADGES}}\n\n{{#BADGES}}\n{{{.}}}\n{{/BADGES}}\n{{/HAS_INLINE_BADGES}}\n{{#HAS_CITATION}}\n\n## Citing\n\nSee [`CITATION.bib`](CITATION.bib) for the relevant reference(s).\n{{/HAS_CITATION}}\n"
  },
  {
    "path": "templates/appveyor.yml",
    "content": "# Documentation: https://github.com/JuliaCI/Appveyor.jl\nenvironment:\n  matrix:\n{{#VERSIONS}}\n    - julia_version: {{{.}}}\n{{/VERSIONS}}\nplatform:\n{{#PLATFORMS}}\n  - {{{.}}}\n{{/PLATFORMS}}\ncache:\n  - '%USERPROFILE%\\.julia\\artifacts'\n{{#HAS_ALLOW_FAILURES}}\nmatrix:\n  allow_failures:\n{{#ALLOW_FAILURES}}\n    - julia_version: {{{.}}}\n{{/ALLOW_FAILURES}}\n{{/HAS_ALLOW_FAILURES}}\nbranches:\n  only:\n    - {{{BRANCH}}}\n    - /release-.*/\nnotifications:\n  - provider: Email\n    on_build_success: false\n    on_build_failure: false\n    on_build_status_changed: false\ninstall:\n  - ps: iex ((new-object net.webclient).DownloadString(\"https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1\"))\nbuild_script:\n  - echo \"%JL_BUILD_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_BUILD_SCRIPT%\"\ntest_script:\n  - echo \"%JL_TEST_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_TEST_SCRIPT%\"\n{{#HAS_CODECOV}}\non_success:\n  - echo \"%JL_CODECOV_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_CODECOV_SCRIPT%\"\n{{/HAS_CODECOV}}\n"
  },
  {
    "path": "templates/benchmark/benchmarks.jlt",
    "content": "using {{{PKG}}}\nusing BenchmarkTools\n\nSUITE = BenchmarkGroup()\nSUITE[\"rand\"] = @benchmarkable rand(10)\n\n# Write your benchmarks here.\n"
  },
  {
    "path": "templates/cirrus.yml",
    "content": "freebsd_instance:\n  image: {{{IMAGE}}}\ntask:\n  name: FreeBSD\n  artifacts_cache:\n    folder: ~/.julia/artifacts\n  env:\n{{#VERSIONS}}\n    JULIA_VERSION: {{{.}}}\n{{/VERSIONS}}\n  install_script:\n    - sh -c \"$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)\"\n  build_script:\n    - cirrusjl build\n  test_script:\n    - cirrusjl test\n{{#HAS_COVERAGE}}\n  coverage_script:\n    - cirrusjl coverage{{#HAS_CODECOV}} codecov{{/HAS_CODECOV}}{{#HAS_COVERALLS}} coveralls{{/HAS_COVERALLS}}\n{{/HAS_COVERAGE}}\n"
  },
  {
    "path": "templates/docs/make.jlt",
    "content": "using {{{PKG}}}\nusing Documenter\n\nDocMeta.setdocmeta!({{{PKG}}}, :DocTestSetup, :(using {{{PKG}}}); recursive=true)\n\nmakedocs(;\n    modules=[{{{PKG}}}],\n    authors=\"{{{AUTHORS}}}\",\n    sitename=\"{{{PKG}}}.jl\",\n    format=Documenter.HTML(;\n{{#CANONICAL}}\n        canonical=\"{{{CANONICAL}}}\",\n{{/CANONICAL}}\n{{#EDIT_LINK}}\n        edit_link={{{EDIT_LINK}}},\n{{/EDIT_LINK}}\n        assets={{^HAS_ASSETS}}String{{/HAS_ASSETS}}[{{^HAS_ASSETS}}],{{/HAS_ASSETS}}\n{{#ASSETS}}\n            \"assets/{{{.}}}\",\n{{/ASSETS}}\n{{#HAS_ASSETS}}\n        ],\n{{/HAS_ASSETS}}\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n    ],\n{{#MAKEDOCS_KWARGS}}\n    {{{first}}}={{{second}}},\n{{/MAKEDOCS_KWARGS}}\n)\n{{#HAS_DEPLOY}}\n\ndeploydocs(;\n    repo=\"{{{REPO}}}\",\n{{#BRANCH}}\n    devbranch=\"{{{BRANCH}}}\",\n{{/BRANCH}}\n)\n{{/HAS_DEPLOY}}\n"
  },
  {
    "path": "templates/docs/src/index.md",
    "content": "```@meta\nCurrentModule = {{{PKG}}}\n```\n\n# {{{PKG}}}\n\nDocumentation for [{{{PKG}}}](https://{{{REPO}}}).\n\n```@index\n```\n\n```@autodocs\nModules = [{{{PKG}}}]\n```\n"
  },
  {
    "path": "templates/drone.star",
    "content": "def main(ctx):\n  pipelines = []\n  for arch in [{{{ARCHES}}}]:\n    for julia in [{{{VERSIONS}}}]:\n      pipelines.append(pipeline(arch, julia))\n  return pipelines\n\ndef pipeline(arch, julia):\n  return {\n    \"kind\": \"pipeline\",\n    \"type\": \"docker\",\n    \"name\": \"Julia %s - %s\" % (julia, arch),\n    \"platform\": {\n      \"os\": \"linux\",\n      \"arch\": arch,\n    },\n    \"steps\": [\n      {\n        \"name\": \"test\",\n        \"image\": \"julia:%s\" % julia,\n        \"commands\": [\n          \"julia -e 'using InteractiveUtils; versioninfo()'\",\n          \"julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test();'\",\n        ],\n      },\n    ],\n  }\n"
  },
  {
    "path": "templates/github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "templates/github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n    <<#BRANCH>>\n      - <<BRANCH>>\n    <</BRANCH>>\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          <<#VERSIONS>>\n          - '<<&.>>'\n          <</VERSIONS>>\n        os:\n          <<#OS>>\n          - <<&.>>\n          <</OS>>\n        arch:\n          <<#ARCH>>\n          - <<&.>>\n          <</ARCH>>\n        <<#HAS_EXCLUDES>>\n        exclude:\n        <</HAS_EXCLUDES>>\n        <<#EXCLUDES>>\n          - os: <<&E_OS>>\n            arch: <<&E_ARCH>>\n            <<#E_VERSION>>\n            version: '<<&E_VERSION>>'\n            <</E_VERSION>>\n        <</EXCLUDES>>\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n      <<#HAS_CODECOV>>\n      - uses: julia-actions/julia-processcoverage@v1\n      - uses: codecov/codecov-action@v4\n        with:\n          files: lcov.info\n          token: ${{ secrets.CODECOV_TOKEN }}\n          fail_ci_if_error: false\n      <</HAS_CODECOV>>\n      <<#HAS_COVERALLS>>\n      - uses: julia-actions/julia-uploadcoveralls@v1\n        env:\n          COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}\n      <</HAS_COVERALLS>>\n  <<#HAS_DOCUMENTER>>\n  docs:\n    name: Documentation\n    runs-on: ubuntu-latest\n    permissions:\n      actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      contents: write\n      statuses: write\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: '1'\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-docdeploy@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}\n      - name: Run doctests\n        shell: julia --project=docs --color=yes {0}\n        run: |\n          using Documenter: DocMeta, doctest\n          using <<&PKG>>\n          DocMeta.setdocmeta!(<<&PKG>>, :DocTestSetup, :(using <<&PKG>>); recursive=true)\n          doctest(<<&PKG>>)\n  <</HAS_DOCUMENTER>>\n  <<#HAS_RUNIC>>\n  runic:\n    name: Runic formatting\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: fredrikekre/runic-action@v1\n        with:\n          version: '1'\n  <</HAS_RUNIC>>\n"
  },
  {
    "path": "templates/github/workflows/CompatHelper.yml",
    "content": "name: CompatHelper\non:\n  schedule:\n    - cron: <<&CRON>>\n  workflow_dispatch:\njobs:\n  CompatHelper:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Install CompatHelper\n        run: using Pkg; Pkg.add(\"CompatHelper\")\n        shell: julia --color=yes {0}\n      - name: Run CompatHelper\n        run: using CompatHelper; CompatHelper.main()\n        shell: julia --color=yes {0}\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "templates/github/workflows/Register.yml",
    "content": "name: Register Package\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        description: <<&PROMPT>>\n        required: true\njobs:\n  register:\n    runs-on: ubuntu-latest\n    permissions:\n        contents: write\n    steps:\n      - uses: julia-actions/RegisterAction@latest\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": "templates/github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == '{{{TRIGGER}}}'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: {{{TOKEN}}}\n          {{#SSH}}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: {{{SSH}}}\n          {{/SSH}}\n          {{#SSH_PASSWORD}}\n          ssh_password: {{{SSH_PASSWORD}}}\n          {{/SSH_PASSWORD}}\n          {{#CHANGELOG}}\n          changelog: {{{CHANGELOG}}}\n          {{/CHANGELOG}}\n          {{#CHANGELOG_IGNORE}}\n          changelog_ignore: {{{CHANGELOG_IGNORE}}}\n          {{/CHANGELOG_IGNORE}}\n          {{#GPG}}\n          gpg: {{{GPG}}}\n          {{/GPG}}\n          {{#GPG_PASSWORD}}\n          gpg_password: {{{GPG_PASSWORD}}}\n          {{/GPG_PASSWORD}}\n          {{#REGISTRY}}\n          registry: {{{REGISTRY}}}\n          {{/REGISTRY}}\n          {{#BRANCHES}}\n          branches: {{{BRANCHES}}}\n          {{/BRANCHES}}\n          {{#DISPATCH}}\n          dispatch: {{{DISPATCH}}}\n          {{/DISPATCH}}\n          {{#DISPATCH_DELAY}}\n          dispatch_delay: {{{DISPATCH_DELAY}}}\n          {{/DISPATCH_DELAY}}\n"
  },
  {
    "path": "templates/gitlab-ci.yml",
    "content": ".script:\n  script:\n    - |\n      julia --project=@. -e '\n        using Pkg\n        Pkg.build()\n        Pkg.test({{#HAS_COVERAGE}}coverage=true{{/HAS_COVERAGE}})'\n{{#HAS_COVERAGE}}\n.coverage:\n  coverage: /Test coverage (\\d+\\.\\d+%)/\n  after_script:\n    - |\n      julia -e '\n        using Pkg\n        Pkg.add(\"Coverage\")\n        using Coverage\n        c, t = get_summary(process_folder())\n        using Printf\n        @printf \"Test coverage %.2f%%\\n\" 100c / t'\n{{/HAS_COVERAGE}}\n{{#VERSIONS}}\nJulia {{{.}}}:\n  image: julia:{{{.}}}\n  extends:\n    - .script\n{{#HAS_COVERAGE}}\n    - .coverage\n{{/HAS_COVERAGE}}\n{{/VERSIONS}}\n{{#HAS_DOCUMENTER}}\npages:\n  image: julia:{{{VERSION}}}\n  stage: deploy\n  script:\n    - |\n      julia --project=docs -e '\n        using Pkg\n        Pkg.develop(PackageSpec(path=pwd()))\n        Pkg.instantiate()\n        using Documenter: doctest\n        using {{{PKG}}}\n        doctest({{{PKG}}})\n        include(\"docs/make.jl\")'\n    - mkdir -p public\n    - mv docs/build public/dev\n  artifacts:\n    paths:\n      - public\n  only:\n    - {{{BRANCH}}}\n{{/HAS_DOCUMENTER}}\n"
  },
  {
    "path": "templates/licenses/AGPL-3.0-or-later",
    "content": "Copyright (C) {{{YEAR}}} {{{AUTHORS}}}\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n\n                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU Affero General Public License is a free, copyleft license for\nsoftware and other kinds of works, specifically designed to ensure\ncooperation with the community in the case of network server software.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nour General Public Licenses are intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  Developers that use our General Public Licenses protect your rights\nwith two steps: (1) assert copyright on the software, and (2) offer\nyou this License which gives you legal permission to copy, distribute\nand/or modify the software.\n\n  A secondary benefit of defending all users' freedom is that\nimprovements made in alternate versions of the program, if they\nreceive widespread use, become available for other developers to\nincorporate.  Many developers of free software are heartened and\nencouraged by the resulting cooperation.  However, in the case of\nsoftware used on network servers, this result may fail to come about.\nThe GNU General Public License permits making a modified version and\nletting the public access it on a server without ever releasing its\nsource code to the public.\n\n  The GNU Affero General Public License is designed specifically to\nensure that, in such cases, the modified source code becomes available\nto the community.  It requires the operator of a network server to\nprovide the source code of the modified version running there to the\nusers of that server.  Therefore, public use of a modified version, on\na publicly accessible server, gives the public access to the source\ncode of the modified version.\n\n  An older license, called the Affero General Public License and\npublished by Affero, was designed to accomplish similar goals.  This is\na different license, not a version of the Affero GPL, but Affero has\nreleased a new version of the Affero GPL which permits relicensing under\nthis license.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU Affero General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Remote Network Interaction; Use with the GNU General Public License.\n\n  Notwithstanding any other provision of this License, if you modify the\nProgram, your modified version must prominently offer all users\ninteracting with it remotely through a computer network (if your version\nsupports such interaction) an opportunity to receive the Corresponding\nSource of your version by providing access to the Corresponding Source\nfrom a network server at no charge, through some standard or customary\nmeans of facilitating copying of software.  This Corresponding Source\nshall include the Corresponding Source for any work covered by version 3\nof the GNU General Public License that is incorporated pursuant to the\nfollowing paragraph.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the work with which it is combined will remain governed by version\n3 of the GNU General Public License.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU Affero General Public License from time to time.  Such new versions\nwill be similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU Affero General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU Affero General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU Affero General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If your software can interact with users remotely through a computer\nnetwork, you should also make sure that it provides a way for users to\nget its source.  For example, if your program is a web application, its\ninterface could display a \"Source\" link that leads users to an archive\nof the code.  There are many ways you could offer source, and different\nsolutions will be better for different programs; see section 13 for the\nspecific requirements.\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU AGPL, see\n<https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "templates/licenses/Apache-2.0",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "templates/licenses/BSD-2-Clause",
    "content": "BSD 2-Clause License\n\nCopyright (c) {{{YEAR}}}, {{{AUTHORS}}}\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  {
    "path": "templates/licenses/BSD-3-Clause",
    "content": "BSD 3-Clause License\n\nCopyright (c) {{{YEAR}}}, {{{AUTHORS}}}\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  {
    "path": "templates/licenses/EUPL-1.2",
    "content": "European Union Public Licence\nV. 1.2\n\nEUPL © the European Union 2007, 2016\n\nThis European Union Public Licence (the ‘EUPL’) applies to the Work (as\ndefined below) which is provided under the terms of this Licence. Any use of\nthe Work, other than as authorised under this Licence is prohibited (to the\nextent such use is covered by a right of the copyright holder of the Work).\n\nThe Work is provided under the terms of this Licence when the Licensor (as\ndefined below) has placed the following notice immediately following the\ncopyright notice for the Work: “Licensed under the EUPL”, or has expressed by\nany other means his willingness to license under the EUPL.\n\n1. Definitions\n\nIn this Licence, the following terms have the following meaning:\n— ‘The Licence’: this Licence.\n— ‘The Original Work’: the work or software distributed or communicated by the\n  ‘Licensor under this Licence, available as Source Code and also as\n  ‘Executable Code as the case may be.\n— ‘Derivative Works’: the works or software that could be created by the\n  ‘Licensee, based upon the Original Work or modifications thereof. This\n  ‘Licence does not define the extent of modification or dependence on the\n  ‘Original Work required in order to classify a work as a Derivative Work;\n  ‘this extent is determined by copyright law applicable in the country\n  ‘mentioned in Article 15.\n— ‘The Work’: the Original Work or its Derivative Works.\n— ‘The Source Code’: the human-readable form of the Work which is the most\n  convenient for people to study and modify.\n\n— ‘The Executable Code’: any code which has generally been compiled and which\n  is meant to be interpreted by a computer as a program.\n— ‘The Licensor’: the natural or legal person that distributes or communicates\n  the Work under the Licence.\n— ‘Contributor(s)’: any natural or legal person who modifies the Work under\n  the Licence, or otherwise contributes to the creation of a Derivative Work.\n— ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of\n  the Work under the terms of the Licence.\n— ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,\n  renting, distributing, communicating, transmitting, or otherwise making\n  available, online or offline, copies of the Work or providing access to its\n  essential functionalities at the disposal of any other natural or legal\n  person.\n\n2. Scope of the rights granted by the Licence\n\nThe Licensor hereby grants You a worldwide, royalty-free, non-exclusive,\nsublicensable licence to do the following, for the duration of copyright\nvested in the Original Work:\n\n— use the Work in any circumstance and for all usage,\n— reproduce the Work,\n— modify the Work, and make Derivative Works based upon the Work,\n— communicate to the public, including the right to make available or display\n  the Work or copies thereof to the public and perform publicly, as the case\n  may be, the Work,\n— distribute the Work or copies thereof,\n— lend and rent the Work or copies thereof,\n— sublicense rights in the Work or copies thereof.\n\nThose rights can be exercised on any media, supports and formats, whether now\nknown or later invented, as far as the applicable law permits so.\n\nIn the countries where moral rights apply, the Licensor waives his right to\nexercise his moral right to the extent allowed by law in order to make\neffective the licence of the economic rights here above listed.\n\nThe Licensor grants to the Licensee royalty-free, non-exclusive usage rights\nto any patents held by the Licensor, to the extent necessary to make use of\nthe rights granted on the Work under this Licence.\n\n3. Communication of the Source Code\n\nThe Licensor may provide the Work either in its Source Code form, or as\nExecutable Code. If the Work is provided as Executable Code, the Licensor\nprovides in addition a machine-readable copy of the Source Code of the Work\nalong with each copy of the Work that the Licensor distributes or indicates,\nin a notice following the copyright notice attached to the Work, a repository\nwhere the Source Code is easily and freely accessible for as long as the\nLicensor continues to distribute or communicate the Work.\n\n4. Limitations on copyright\n\nNothing in this Licence is intended to deprive the Licensee of the benefits\nfrom any exception or limitation to the exclusive rights of the rights owners\nin the Work, of the exhaustion of those rights or of other applicable\nlimitations thereto.\n\n5. Obligations of the Licensee\n\nThe grant of the rights mentioned above is subject to some restrictions and\nobligations imposed on the Licensee. Those obligations are the following:\n\nAttribution right: The Licensee shall keep intact all copyright, patent or\ntrademarks notices and all notices that refer to the Licence and to the\ndisclaimer of warranties. The Licensee must include a copy of such notices and\na copy of the Licence with every copy of the Work he/she distributes or\ncommunicates. The Licensee must cause any Derivative Work to carry prominent\nnotices stating that the Work has been modified and the date of modification.\n\nCopyleft clause: If the Licensee distributes or communicates copies of the\nOriginal Works or Derivative Works, this Distribution or Communication will be\ndone under the terms of this Licence or of a later version of this Licence\nunless the Original Work is expressly distributed only under this version of\nthe Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee\n(becoming Licensor) cannot offer or impose any additional terms or conditions\non the Work or Derivative Work that alter or restrict the terms of the\nLicence.\n\nCompatibility clause: If the Licensee Distributes or Communicates Derivative\nWorks or copies thereof based upon both the Work and another work licensed\nunder a Compatible Licence, this Distribution or Communication can be done\nunder the terms of this Compatible Licence. For the sake of this clause,\n‘Compatible Licence’ refers to the licences listed in the appendix attached to\nthis Licence. Should the Licensee's obligations under the Compatible Licence\nconflict with his/her obligations under this Licence, the obligations of the\nCompatible Licence shall prevail.\n\nProvision of Source Code: When distributing or communicating copies of the\nWork, the Licensee will provide a machine-readable copy of the Source Code or\nindicate a repository where this Source will be easily and freely available\nfor as long as the Licensee continues to distribute or communicate the Work.\n\nLegal Protection: This Licence does not grant permission to use the trade\nnames, trademarks, service marks, or names of the Licensor, except as required\nfor reasonable and customary use in describing the origin of the Work and\nreproducing the content of the copyright notice.\n\n6. Chain of Authorship\n\nThe original Licensor warrants that the copyright in the Original Work granted\nhereunder is owned by him/her or licensed to him/her and that he/she has the\npower and authority to grant the Licence.\n\nEach Contributor warrants that the copyright in the modifications he/she\nbrings to the Work are owned by him/her or licensed to him/her and that he/she\nhas the power and authority to grant the Licence.\n\nEach time You accept the Licence, the original Licensor and subsequent\nContributors grant You a licence to their contributions to the Work, under the\nterms of this Licence.\n\n7. Disclaimer of Warranty\n\nThe Work is a work in progress, which is continuously improved by numerous\nContributors. It is not a finished work and may therefore contain defects or\n‘bugs’ inherent to this type of development.\n\nFor the above reason, the Work is provided under the Licence on an ‘as is’\nbasis and without warranties of any kind concerning the Work, including\nwithout limitation merchantability, fitness for a particular purpose, absence\nof defects or errors, accuracy, non-infringement of intellectual property\nrights other than copyright as stated in Article 6 of this Licence.\n\nThis disclaimer of warranty is an essential part of the Licence and a\ncondition for the grant of any rights to the Work.\n\n8. Disclaimer of Liability\n\nExcept in the cases of wilful misconduct or damages directly caused to natural\npersons, the Licensor will in no event be liable for any direct or indirect,\nmaterial or moral, damages of any kind, arising out of the Licence or of the\nuse of the Work, including without limitation, damages for loss of goodwill,\nwork stoppage, computer failure or malfunction, loss of data or any commercial\ndamage, even if the Licensor has been advised of the possibility of such\ndamage. However, the Licensor will be liable under statutory product liability\nlaws as far such laws apply to the Work.\n\n9. Additional agreements\n\nWhile distributing the Work, You may choose to conclude an additional\nagreement, defining obligations or services consistent with this Licence.\nHowever, if accepting obligations, You may act only on your own behalf and on\nyour sole responsibility, not on behalf of the original Licensor or any other\nContributor, and only if You agree to indemnify, defend, and hold each\nContributor harmless for any liability incurred by, or claims asserted against\nsuch Contributor by the fact You have accepted any warranty or additional\nliability.\n\n10. Acceptance of the Licence\n\nThe provisions of this Licence can be accepted by clicking on an icon ‘I\nagree’ placed under the bottom of a window displaying the text of this Licence\nor by affirming consent in any other similar way, in accordance with the rules\nof applicable law. Clicking on that icon indicates your clear and irrevocable\nacceptance of this Licence and all of its terms and conditions.\n\nSimilarly, you irrevocably accept this Licence and all of its terms and\nconditions by exercising any rights granted to You by Article 2 of this\nLicence, such as the use of the Work, the creation by You of a Derivative Work\nor the Distribution or Communication by You of the Work or copies thereof.\n\n11. Information to the public\n\nIn case of any Distribution or Communication of the Work by means of\nelectronic communication by You (for example, by offering to download the Work\nfrom a remote location) the distribution channel or media (for example, a\nwebsite) must at least provide to the public the information requested by the\napplicable law regarding the Licensor, the Licence and the way it may be\naccessible, concluded, stored and reproduced by the Licensee.\n\n12. Termination of the Licence\n\nThe Licence and the rights granted hereunder will terminate automatically upon\nany breach by the Licensee of the terms of the Licence. Such a termination\nwill not terminate the licences of any person who has received the Work from\nthe Licensee under the Licence, provided such persons remain in full\ncompliance with the Licence.\n\n13. Miscellaneous\n\nWithout prejudice of Article 9 above, the Licence represents the complete\nagreement between the Parties as to the Work.\n\nIf any provision of the Licence is invalid or unenforceable under applicable\nlaw, this will not affect the validity or enforceability of the Licence as a\nwhole. Such provision will be construed or reformed so as necessary to make it\nvalid and enforceable.\n\nThe European Commission may publish other linguistic versions or new versions\nof this Licence or updated versions of the Appendix, so far this is required\nand reasonable, without reducing the scope of the rights granted by the\nLicence. New versions of the Licence will be published with a unique version\nnumber.\n\nAll linguistic versions of this Licence, approved by the European Commission,\nhave identical value. Parties can take advantage of the linguistic version of\ntheir choice.\n\n14. Jurisdiction\n\nWithout prejudice to specific agreement between parties,\n— any litigation resulting from the interpretation of this License, arising\n  between the European Union institutions, bodies, offices or agencies, as a\n  Licensor, and any Licensee, will be subject to the jurisdiction of the Court\n  of Justice of the European Union, as laid down in article 272 of the Treaty\n  on the Functioning of the European Union,\n— any litigation arising between other parties and resulting from the\n  interpretation of this License, will be subject to the exclusive\n  jurisdiction of the competent court where the Licensor resides or conducts\n  its primary business.\n\n15. Applicable Law\n\nWithout prejudice to specific agreement between parties,\n— this Licence shall be governed by the law of the European Union Member State\n  where the Licensor has his seat, resides or has his registered office,\n— this licence shall be governed by Belgian law if the Licensor has no seat,\n  residence or registered office inside a European Union Member State.\n\nAppendix\n\n‘Compatible Licences’ according to Article 5 EUPL are:\n— GNU General Public License (GPL) v. 2, v. 3\n— GNU Affero General Public License (AGPL) v. 3\n— Open Software License (OSL) v. 2.1, v. 3.0\n— Eclipse Public License (EPL) v. 1.0\n— CeCILL v. 2.0, v. 2.1\n— Mozilla Public Licence (MPL) v. 2\n— GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3\n— Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for\n  works other than software\n— European Union Public Licence (EUPL) v. 1.1, v. 1.2\n— Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or\n  Strong Reciprocity (LiLiQ-R+)\n\n— The European Commission may update this Appendix to later versions of the\n  above licences without producing a new version of the EUPL, as long as they\n  provide the rights granted in Article 2 of this Licence and protect the\n  covered Source Code from exclusive appropriation.\n— All other changes or additions to this Appendix require the production of a\n  new EUPL version.\n"
  },
  {
    "path": "templates/licenses/GPL-2.0-or-later",
    "content": "Copyright (C) {{{YEAR}}} {{{AUTHORS}}}\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along\nwith this program; if not, write to the Free Software Foundation, Inc.,\n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\n\n                    GNU GENERAL PUBLIC LICENSE\n                       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.)  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n                            NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software; you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation; either version 2 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License along\n    with this program; if not, write to the Free Software Foundation, Inc.,\n    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this\nwhen it starts in an interactive mode:\n\n    Gnomovision version 69, Copyright (C) year name of author\n    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, the commands you use may\nbe called something other than `show w' and `show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary.  Here is a sample; alter the names:\n\n  Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n  `Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n  <signature of Ty Coon>, 1 April 1989\n  Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs.  If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.\n"
  },
  {
    "path": "templates/licenses/GPL-3.0-or-later",
    "content": "Copyright (C) {{{YEAR}}} {{{AUTHORS}}}\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n\n                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "templates/licenses/ISC",
    "content": "ISC License\n\nCopyright (c) {{{YEAR}}}, {{{AUTHORS}}}\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"
  },
  {
    "path": "templates/licenses/LGPL-2.1-or-later",
    "content": "Copyright (C) {{{YEAR}}} {{{AUTHORS}}}\n\nThis library is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 2.1 of the License, or (at your option) any later version.\n\nThis library is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this library; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301\nUSA\n\n\n                  GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 2.1, February 1999\n\n Copyright (C) 1991, 1999 Free Software Foundation, Inc.\n 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n[This is the first released version of the Lesser GPL.  It also counts\n as the successor of the GNU Library Public License, version 2, hence\n the version number 2.1.]\n\n                            Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicenses are intended to guarantee your freedom to share and change\nfree software--to make sure the software is free for all its users.\n\n  This license, the Lesser General Public License, applies to some\nspecially designated software packages--typically libraries--of the\nFree Software Foundation and other authors who decide to use it.  You\ncan use it too, but we suggest you first think carefully about whether\nthis license or the ordinary General Public License is the better\nstrategy to use in any particular case, based on the explanations below.\n\n  When we speak of free software, we are referring to freedom of use,\nnot price.  Our General Public Licenses are designed to make sure that\nyou have the freedom to distribute copies of free software (and charge\nfor this service if you wish); that you receive source code or can get\nit if you want it; that you can change the software and use pieces of\nit in new free programs; and that you are informed that you can do\nthese things.\n\n  To protect your rights, we need to make restrictions that forbid\ndistributors to deny you these rights or to ask you to surrender these\nrights.  These restrictions translate to certain responsibilities for\nyou if you distribute copies of the library or if you modify it.\n\n  For example, if you distribute copies of the library, whether gratis\nor for a fee, you must give the recipients all the rights that we gave\nyou.  You must make sure that they, too, receive or can get the source\ncode.  If you link other code with the library, you must provide\ncomplete object files to the recipients, so that they can relink them\nwith the library after making changes to the library and recompiling\nit.  And you must show them these terms so they know their rights.\n\n  We protect your rights with a two-step method: (1) we copyright the\nlibrary, and (2) we offer you this license, which gives you legal\npermission to copy, distribute and/or modify the library.\n\n  To protect each distributor, we want to make it very clear that\nthere is no warranty for the free library.  Also, if the library is\nmodified by someone else and passed on, the recipients should know\nthat what they have is not the original version, so that the original\nauthor's reputation will not be affected by problems that might be\nintroduced by others.\n\n  Finally, software patents pose a constant threat to the existence of\nany free program.  We wish to make sure that a company cannot\neffectively restrict the users of a free program by obtaining a\nrestrictive license from a patent holder.  Therefore, we insist that\nany patent license obtained for a version of the library must be\nconsistent with the full freedom of use specified in this license.\n\n  Most GNU software, including some libraries, is covered by the\nordinary GNU General Public License.  This license, the GNU Lesser\nGeneral Public License, applies to certain designated libraries, and\nis quite different from the ordinary General Public License.  We use\nthis license for certain libraries in order to permit linking those\nlibraries into non-free programs.\n\n  When a program is linked with a library, whether statically or using\na shared library, the combination of the two is legally speaking a\ncombined work, a derivative of the original library.  The ordinary\nGeneral Public License therefore permits such linking only if the\nentire combination fits its criteria of freedom.  The Lesser General\nPublic License permits more lax criteria for linking other code with\nthe library.\n\n  We call this license the \"Lesser\" General Public License because it\ndoes Less to protect the user's freedom than the ordinary General\nPublic License.  It also provides other free software developers Less\nof an advantage over competing non-free programs.  These disadvantages\nare the reason we use the ordinary General Public License for many\nlibraries.  However, the Lesser license provides advantages in certain\nspecial circumstances.\n\n  For example, on rare occasions, there may be a special need to\nencourage the widest possible use of a certain library, so that it becomes\na de-facto standard.  To achieve this, non-free programs must be\nallowed to use the library.  A more frequent case is that a free\nlibrary does the same job as widely used non-free libraries.  In this\ncase, there is little to gain by limiting the free library to free\nsoftware only, so we use the Lesser General Public License.\n\n  In other cases, permission to use a particular library in non-free\nprograms enables a greater number of people to use a large body of\nfree software.  For example, permission to use the GNU C Library in\nnon-free programs enables many more people to use the whole GNU\noperating system, as well as its variant, the GNU/Linux operating\nsystem.\n\n  Although the Lesser General Public License is Less protective of the\nusers' freedom, it does ensure that the user of a program that is\nlinked with the Library has the freedom and the wherewithal to run\nthat program using a modified version of the Library.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.  Pay close attention to the difference between a\n\"work based on the library\" and a \"work that uses the library\".  The\nformer contains code derived from the library, whereas the latter must\nbe combined with the library in order to run.\n\n                  GNU LESSER GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License Agreement applies to any software library or other\nprogram which contains a notice placed by the copyright holder or\nother authorized party saying it may be distributed under the terms of\nthis Lesser General Public License (also called \"this License\").\nEach licensee is addressed as \"you\".\n\n  A \"library\" means a collection of software functions and/or data\nprepared so as to be conveniently linked with application programs\n(which use some of those functions and data) to form executables.\n\n  The \"Library\", below, refers to any such software library or work\nwhich has been distributed under these terms.  A \"work based on the\nLibrary\" means either the Library or any derivative work under\ncopyright law: that is to say, a work containing the Library or a\nportion of it, either verbatim or with modifications and/or translated\nstraightforwardly into another language.  (Hereinafter, translation is\nincluded without limitation in the term \"modification\".)\n\n  \"Source code\" for a work means the preferred form of the work for\nmaking modifications to it.  For a library, complete source code means\nall the source code for all modules it contains, plus any associated\ninterface definition files, plus the scripts used to control compilation\nand installation of the library.\n\n  Activities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning a program using the Library is not restricted, and output from\nsuch a program is covered only if its contents constitute a work based\non the Library (independent of the use of the Library in a tool for\nwriting it).  Whether that is true depends on what the Library does\nand what the program that uses the Library does.\n\n  1. You may copy and distribute verbatim copies of the Library's\ncomplete source code as you receive it, in any medium, provided that\nyou conspicuously and appropriately publish on each copy an\nappropriate copyright notice and disclaimer of warranty; keep intact\nall the notices that refer to this License and to the absence of any\nwarranty; and distribute a copy of this License along with the\nLibrary.\n\n  You may charge a fee for the physical act of transferring a copy,\nand you may at your option offer warranty protection in exchange for a\nfee.\n\n  2. You may modify your copy or copies of the Library or any portion\nof it, thus forming a work based on the Library, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) The modified work must itself be a software library.\n\n    b) You must cause the files modified to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    c) You must cause the whole of the work to be licensed at no\n    charge to all third parties under the terms of this License.\n\n    d) If a facility in the modified Library refers to a function or a\n    table of data to be supplied by an application program that uses\n    the facility, other than as an argument passed when the facility\n    is invoked, then you must make a good faith effort to ensure that,\n    in the event an application does not supply such function or\n    table, the facility still operates, and performs whatever part of\n    its purpose remains meaningful.\n\n    (For example, a function in a library to compute square roots has\n    a purpose that is entirely well-defined independent of the\n    application.  Therefore, Subsection 2d requires that any\n    application-supplied function or table used by this function must\n    be optional: if the application does not supply it, the square\n    root function must still compute square roots.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Library,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Library, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote\nit.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Library.\n\nIn addition, mere aggregation of another work not based on the Library\nwith the Library (or with a work based on the Library) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may opt to apply the terms of the ordinary GNU General Public\nLicense instead of this License to a given copy of the Library.  To do\nthis, you must alter all the notices that refer to this License, so\nthat they refer to the ordinary GNU General Public License, version 2,\ninstead of to this License.  (If a newer version than version 2 of the\nordinary GNU General Public License has appeared, then you can specify\nthat version instead if you wish.)  Do not make any other change in\nthese notices.\n\n  Once this change is made in a given copy, it is irreversible for\nthat copy, so the ordinary GNU General Public License applies to all\nsubsequent copies and derivative works made from that copy.\n\n  This option is useful when you wish to copy part of the code of\nthe Library into a program that is not a library.\n\n  4. You may copy and distribute the Library (or a portion or\nderivative of it, under Section 2) in object code or executable form\nunder the terms of Sections 1 and 2 above provided that you accompany\nit with the complete corresponding machine-readable source code, which\nmust be distributed under the terms of Sections 1 and 2 above on a\nmedium customarily used for software interchange.\n\n  If distribution of object code is made by offering access to copy\nfrom a designated place, then offering equivalent access to copy the\nsource code from the same place satisfies the requirement to\ndistribute the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  5. A program that contains no derivative of any portion of the\nLibrary, but is designed to work with the Library by being compiled or\nlinked with it, is called a \"work that uses the Library\".  Such a\nwork, in isolation, is not a derivative work of the Library, and\ntherefore falls outside the scope of this License.\n\n  However, linking a \"work that uses the Library\" with the Library\ncreates an executable that is a derivative of the Library (because it\ncontains portions of the Library), rather than a \"work that uses the\nlibrary\".  The executable is therefore covered by this License.\nSection 6 states terms for distribution of such executables.\n\n  When a \"work that uses the Library\" uses material from a header file\nthat is part of the Library, the object code for the work may be a\nderivative work of the Library even though the source code is not.\nWhether this is true is especially significant if the work can be\nlinked without the Library, or if the work is itself a library.  The\nthreshold for this to be true is not precisely defined by law.\n\n  If such an object file uses only numerical parameters, data\nstructure layouts and accessors, and small macros and small inline\nfunctions (ten lines or less in length), then the use of the object\nfile is unrestricted, regardless of whether it is legally a derivative\nwork.  (Executables containing this object code plus portions of the\nLibrary will still fall under Section 6.)\n\n  Otherwise, if the work is a derivative of the Library, you may\ndistribute the object code for the work under the terms of Section 6.\nAny executables containing that work also fall under Section 6,\nwhether or not they are linked directly with the Library itself.\n\n  6. As an exception to the Sections above, you may also combine or\nlink a \"work that uses the Library\" with the Library to produce a\nwork containing portions of the Library, and distribute that work\nunder terms of your choice, provided that the terms permit\nmodification of the work for the customer's own use and reverse\nengineering for debugging such modifications.\n\n  You must give prominent notice with each copy of the work that the\nLibrary is used in it and that the Library and its use are covered by\nthis License.  You must supply a copy of this License.  If the work\nduring execution displays copyright notices, you must include the\ncopyright notice for the Library among them, as well as a reference\ndirecting the user to the copy of this License.  Also, you must do one\nof these things:\n\n    a) Accompany the work with the complete corresponding\n    machine-readable source code for the Library including whatever\n    changes were used in the work (which must be distributed under\n    Sections 1 and 2 above); and, if the work is an executable linked\n    with the Library, with the complete machine-readable \"work that\n    uses the Library\", as object code and/or source code, so that the\n    user can modify the Library and then relink to produce a modified\n    executable containing the modified Library.  (It is understood\n    that the user who changes the contents of definitions files in the\n    Library will not necessarily be able to recompile the application\n    to use the modified definitions.)\n\n    b) Use a suitable shared library mechanism for linking with the\n    Library.  A suitable mechanism is one that (1) uses at run time a\n    copy of the library already present on the user's computer system,\n    rather than copying library functions into the executable, and (2)\n    will operate properly with a modified version of the library, if\n    the user installs one, as long as the modified version is\n    interface-compatible with the version that the work was made with.\n\n    c) Accompany the work with a written offer, valid for at\n    least three years, to give the same user the materials\n    specified in Subsection 6a, above, for a charge no more\n    than the cost of performing this distribution.\n\n    d) If distribution of the work is made by offering access to copy\n    from a designated place, offer equivalent access to copy the above\n    specified materials from the same place.\n\n    e) Verify that the user has already received a copy of these\n    materials or that you have already sent this user a copy.\n\n  For an executable, the required form of the \"work that uses the\nLibrary\" must include any data and utility programs needed for\nreproducing the executable from it.  However, as a special exception,\nthe materials to be distributed need not include anything that is\nnormally distributed (in either source or binary form) with the major\ncomponents (compiler, kernel, and so on) of the operating system on\nwhich the executable runs, unless that component itself accompanies\nthe executable.\n\n  It may happen that this requirement contradicts the license\nrestrictions of other proprietary libraries that do not normally\naccompany the operating system.  Such a contradiction means you cannot\nuse both them and the Library together in an executable that you\ndistribute.\n\n  7. You may place library facilities that are a work based on the\nLibrary side-by-side in a single library together with other library\nfacilities not covered by this License, and distribute such a combined\nlibrary, provided that the separate distribution of the work based on\nthe Library and of the other library facilities is otherwise\npermitted, and provided that you do these two things:\n\n    a) Accompany the combined library with a copy of the same work\n    based on the Library, uncombined with any other library\n    facilities.  This must be distributed under the terms of the\n    Sections above.\n\n    b) Give prominent notice with the combined library of the fact\n    that part of it is a work based on the Library, and explaining\n    where to find the accompanying uncombined form of the same work.\n\n  8. You may not copy, modify, sublicense, link with, or distribute\nthe Library except as expressly provided under this License.  Any\nattempt otherwise to copy, modify, sublicense, link with, or\ndistribute the Library is void, and will automatically terminate your\nrights under this License.  However, parties who have received copies,\nor rights, from you under this License will not have their licenses\nterminated so long as such parties remain in full compliance.\n\n  9. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Library or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Library (or any work based on the\nLibrary), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Library or works based on it.\n\n  10. Each time you redistribute the Library (or any work based on the\nLibrary), the recipient automatically receives a license from the\noriginal licensor to copy, distribute, link with or modify the Library\nsubject to these terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties with\nthis License.\n\n  11. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Library at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Library by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Library.\n\nIf any portion of this section is held invalid or unenforceable under any\nparticular circumstance, the balance of the section is intended to apply,\nand the section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  12. If the distribution and/or use of the Library is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Library under this License may add\nan explicit geographical distribution limitation excluding those countries,\nso that distribution is permitted only in or among countries not thus\nexcluded.  In such case, this License incorporates the limitation as if\nwritten in the body of this License.\n\n  13. The Free Software Foundation may publish revised and/or new\nversions of the Lesser General Public License from time to time.\nSuch new versions will be similar in spirit to the present version,\nbut may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Library\nspecifies a version number of this License which applies to it and\n\"any later version\", you have the option of following the terms and\nconditions either of that version or of any later version published by\nthe Free Software Foundation.  If the Library does not specify a\nlicense version number, you may choose any version ever published by\nthe Free Software Foundation.\n\n  14. If you wish to incorporate parts of the Library into other free\nprograms whose distribution conditions are incompatible with these,\nwrite to the author to ask for permission.  For software which is\ncopyrighted by the Free Software Foundation, write to the Free\nSoftware Foundation; we sometimes make exceptions for this.  Our\ndecision will be guided by the two goals of preserving the free status\nof all derivatives of our free software and of promoting the sharing\nand reuse of software generally.\n\n                            NO WARRANTY\n\n  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO\nWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.\nEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR\nOTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANY\nKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\nLIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME\nTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN\nWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY\nAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU\nFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR\nCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE\nLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING\nRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A\nFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF\nSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\nDAMAGES.\n\n                     END OF TERMS AND CONDITIONS\n\n           How to Apply These Terms to Your New Libraries\n\n  If you develop a new library, and you want it to be of the greatest\npossible use to the public, we recommend making it free software that\neveryone can redistribute and change.  You can do so by permitting\nredistribution under these terms (or, alternatively, under the terms of the\nordinary General Public License).\n\n  To apply these terms, attach the following notices to the library.  It is\nsafest to attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least the\n\"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the library's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This library is free software; you can redistribute it and/or\n    modify it under the terms of the GNU Lesser General Public\n    License as published by the Free Software Foundation; either\n    version 2.1 of the License, or (at your option) any later version.\n\n    This library is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n    Lesser General Public License for more details.\n\n    You should have received a copy of the GNU Lesser General Public\n    License along with this library; if not, write to the Free Software\n    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301\n    USA\n\nAlso add information on how to contact you by electronic and paper mail.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the library, if\nnecessary.  Here is a sample; alter the names:\n\n  Yoyodyne, Inc., hereby disclaims all copyright interest in the\n  library `Frob' (a library for tweaking knobs) written by James Random\n  Hacker.\n\n  <signature of Ty Coon>, 1 April 1990\n  Ty Coon, President of Vice\n\nThat's all there is to it!\n"
  },
  {
    "path": "templates/licenses/LGPL-3.0-or-later",
    "content": "Copyright (C) {{{YEAR}}} {{{AUTHORS}}}\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published\nby the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n\n                   GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\n  This version of the GNU Lesser General Public License incorporates\nthe terms and conditions of version 3 of the GNU General Public\nLicense, supplemented by the additional permissions listed below.\n\n  0. Additional Definitions.\n\n  As used herein, \"this License\" refers to version 3 of the GNU Lesser\nGeneral Public License, and the \"GNU GPL\" refers to version 3 of the GNU\nGeneral Public License.\n\n  \"The Library\" refers to a covered work governed by this License,\nother than an Application or a Combined Work as defined below.\n\n  An \"Application\" is any work that makes use of an interface provided\nby the Library, but which is not otherwise based on the Library.\nDefining a subclass of a class defined by the Library is deemed a mode\nof using an interface provided by the Library.\n\n  A \"Combined Work\" is a work produced by combining or linking an\nApplication with the Library.  The particular version of the Library\nwith which the Combined Work was made is also called the \"Linked\nVersion\".\n\n  The \"Minimal Corresponding Source\" for a Combined Work means the\nCorresponding Source for the Combined Work, excluding any source code\nfor portions of the Combined Work that, considered in isolation, are\nbased on the Application, and not on the Linked Version.\n\n  The \"Corresponding Application Code\" for a Combined Work means the\nobject code and/or source code for the Application, including any data\nand utility programs needed for reproducing the Combined Work from the\nApplication, but excluding the System Libraries of the Combined Work.\n\n  1. Exception to Section 3 of the GNU GPL.\n\n  You may convey a covered work under sections 3 and 4 of this License\nwithout being bound by section 3 of the GNU GPL.\n\n  2. Conveying Modified Versions.\n\n  If you modify a copy of the Library, and, in your modifications, a\nfacility refers to a function or data to be supplied by an Application\nthat uses the facility (other than as an argument passed when the\nfacility is invoked), then you may convey a copy of the modified\nversion:\n\n   a) under this License, provided that you make a good faith effort to\n   ensure that, in the event an Application does not supply the\n   function or data, the facility still operates, and performs\n   whatever part of its purpose remains meaningful, or\n\n   b) under the GNU GPL, with none of the additional permissions of\n   this License applicable to that copy.\n\n  3. Object Code Incorporating Material from Library Header Files.\n\n  The object code form of an Application may incorporate material from\na header file that is part of the Library.  You may convey such object\ncode under terms of your choice, provided that, if the incorporated\nmaterial is not limited to numerical parameters, data structure\nlayouts and accessors, or small macros, inline functions and templates\n(ten or fewer lines in length), you do both of the following:\n\n   a) Give prominent notice with each copy of the object code that the\n   Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the object code with a copy of the GNU GPL and this license\n   document.\n\n  4. Combined Works.\n\n  You may convey a Combined Work under terms of your choice that,\ntaken together, effectively do not restrict modification of the\nportions of the Library contained in the Combined Work and reverse\nengineering for debugging such modifications, if you also do each of\nthe following:\n\n   a) Give prominent notice with each copy of the Combined Work that\n   the Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the Combined Work with a copy of the GNU GPL and this license\n   document.\n\n   c) For a Combined Work that displays copyright notices during\n   execution, include the copyright notice for the Library among\n   these notices, as well as a reference directing the user to the\n   copies of the GNU GPL and this license document.\n\n   d) Do one of the following:\n\n       0) Convey the Minimal Corresponding Source under the terms of this\n       License, and the Corresponding Application Code in a form\n       suitable for, and under terms that permit, the user to\n       recombine or relink the Application with a modified version of\n       the Linked Version to produce a modified Combined Work, in the\n       manner specified by section 6 of the GNU GPL for conveying\n       Corresponding Source.\n\n       1) Use a suitable shared library mechanism for linking with the\n       Library.  A suitable mechanism is one that (a) uses at run time\n       a copy of the Library already present on the user's computer\n       system, and (b) will operate properly with a modified version\n       of the Library that is interface-compatible with the Linked\n       Version.\n\n   e) Provide Installation Information, but only if you would otherwise\n   be required to provide such information under section 6 of the\n   GNU GPL, and only to the extent that such information is\n   necessary to install and execute a modified version of the\n   Combined Work produced by recombining or relinking the\n   Application with a modified version of the Linked Version. (If\n   you use option 4d0, the Installation Information must accompany\n   the Minimal Corresponding Source and Corresponding Application\n   Code. If you use option 4d1, you must provide the Installation\n   Information in the manner specified by section 6 of the GNU GPL\n   for conveying Corresponding Source.)\n\n  5. Combined Libraries.\n\n  You may place library facilities that are a work based on the\nLibrary side by side in a single library together with other library\nfacilities that are not Applications and are not covered by this\nLicense, and convey such a combined library under terms of your\nchoice, if you do both of the following:\n\n   a) Accompany the combined library with a copy of the same work based\n   on the Library, uncombined with any other library facilities,\n   conveyed under the terms of this License.\n\n   b) Give prominent notice with the combined library that part of it\n   is a work based on the Library, and explaining where to find the\n   accompanying uncombined form of the same work.\n\n  6. Revised Versions of the GNU Lesser General Public License.\n\n  The Free Software Foundation may publish revised and/or new versions\nof the GNU Lesser General Public License from time to time. Such new\nversions will be similar in spirit to the present version, but may\ndiffer in detail to address new problems or concerns.\n\n  Each version is given a distinguishing version number. If the\nLibrary as you received it specifies that a certain numbered version\nof the GNU Lesser General Public License \"or any later version\"\napplies to it, you have the option of following the terms and\nconditions either of that published version or of any later version\npublished by the Free Software Foundation. If the Library as you\nreceived it does not specify a version number of the GNU Lesser\nGeneral Public License, you may choose any version of the GNU Lesser\nGeneral Public License ever published by the Free Software Foundation.\n\n  If the Library as you received it specifies that a proxy can decide\nwhether future versions of the GNU Lesser General Public License shall\napply, that proxy's public statement of acceptance of any version is\npermanent authorization for you to choose that version for the\nLibrary.\n"
  },
  {
    "path": "templates/licenses/MIT",
    "content": "MIT License\n\nCopyright (c) {{{YEAR}}} {{{AUTHORS}}}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "templates/licenses/MPL-2.0",
    "content": "Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n    means each individual or legal entity that creates, contributes to\n    the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n    means the combination of the Contributions of others (if any) used\n    by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n    means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n    means Source Code Form to which the initial Contributor has attached\n    the notice in Exhibit A, the Executable Form of such Source Code\n    Form, and Modifications of such Source Code Form, in each case\n    including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n    means\n\n    (a) that the initial Contributor has attached the notice described\n        in Exhibit B to the Covered Software; or\n\n    (b) that the Covered Software was made available under the terms of\n        version 1.1 or earlier of the License, but not also under the\n        terms of a Secondary License.\n\n1.6. \"Executable Form\"\n    means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n    means a work that combines Covered Software with other material, in\n    a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n    means this document.\n\n1.9. \"Licensable\"\n    means having the right to grant, to the maximum extent possible,\n    whether at the time of the initial grant or subsequently, any and\n    all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n    means any of the following:\n\n    (a) any file in Source Code Form that results from an addition to,\n        deletion from, or modification of the contents of Covered\n        Software; or\n\n    (b) any new file in Source Code Form that contains any Covered\n        Software.\n\n1.11. \"Patent Claims\" of a Contributor\n    means any patent claim(s), including without limitation, method,\n    process, and apparatus claims, in any patent Licensable by such\n    Contributor that would be infringed, but for the grant of the\n    License, by the making, using, selling, offering for sale, having\n    made, import, or transfer of either its Contributions or its\n    Contributor Version.\n\n1.12. \"Secondary License\"\n    means either the GNU General Public License, Version 2.0, the GNU\n    Lesser General Public License, Version 2.1, the GNU Affero General\n    Public License, Version 3.0, or any later versions of those\n    licenses.\n\n1.13. \"Source Code Form\"\n    means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n    means an individual or a legal entity exercising rights under this\n    License. For legal entities, \"You\" includes any entity that\n    controls, is controlled by, or is under common control with You. For\n    purposes of this definition, \"control\" means (a) the power, direct\n    or indirect, to cause the direction or management of such entity,\n    whether by contract or otherwise, or (b) ownership of more than\n    fifty percent (50%) of the outstanding shares or beneficial\n    ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n    Licensable by such Contributor to use, reproduce, make available,\n    modify, display, perform, distribute, and otherwise exploit its\n    Contributions, either on an unmodified basis, with Modifications, or\n    as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n    for sale, have made, import, and otherwise transfer either its\n    Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n    or\n\n(b) for infringements caused by: (i) Your and any other third party's\n    modifications of Covered Software, or (ii) the combination of its\n    Contributions with other software (except as part of its Contributor\n    Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n    its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n    Form, as described in Section 3.1, and You must inform recipients of\n    the Executable Form how they can obtain a copy of such Source Code\n    Form by reasonable means in a timely manner, at a charge no more\n    than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n    License, or sublicense it under different terms, provided that the\n    license for the Executable Form does not attempt to limit or alter\n    the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n*                                                                      *\n*  6. Disclaimer of Warranty                                           *\n*  -------------------------                                           *\n*                                                                      *\n*  Covered Software is provided under this License on an \"as is\"       *\n*  basis, without warranty of any kind, either expressed, implied, or  *\n*  statutory, including, without limitation, warranties that the       *\n*  Covered Software is free of defects, merchantable, fit for a        *\n*  particular purpose or non-infringing. The entire risk as to the     *\n*  quality and performance of the Covered Software is with You.        *\n*  Should any Covered Software prove defective in any respect, You     *\n*  (not any Contributor) assume the cost of any necessary servicing,   *\n*  repair, or correction. This disclaimer of warranty constitutes an   *\n*  essential part of this License. No use of any Covered Software is   *\n*  authorized under this License except under this disclaimer.         *\n*                                                                      *\n************************************************************************\n\n************************************************************************\n*                                                                      *\n*  7. Limitation of Liability                                          *\n*  --------------------------                                          *\n*                                                                      *\n*  Under no circumstances and under no legal theory, whether tort      *\n*  (including negligence), contract, or otherwise, shall any           *\n*  Contributor, or anyone who distributes Covered Software as          *\n*  permitted above, be liable to You for any direct, indirect,         *\n*  special, incidental, or consequential damages of any character      *\n*  including, without limitation, damages for lost profits, loss of    *\n*  goodwill, work stoppage, computer failure or malfunction, or any    *\n*  and all other commercial damages or losses, even if such party      *\n*  shall have been informed of the possibility of such damages. This   *\n*  limitation of liability shall not apply to liability for death or   *\n*  personal injury resulting from such party's negligence to the       *\n*  extent applicable law prohibits such limitation. Some               *\n*  jurisdictions do not allow the exclusion or limitation of           *\n*  incidental or consequential damages, so this exclusion and          *\n*  limitation may not apply to You.                                    *\n*                                                                      *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n  This Source Code Form is subject to the terms of the Mozilla Public\n  License, v. 2.0. If a copy of the MPL was not distributed with this\n  file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n  This Source Code Form is \"Incompatible With Secondary Licenses\", as\n  defined by the Mozilla Public License, v. 2.0.\n"
  },
  {
    "path": "templates/src/module.jlt",
    "content": "module {{{PKG}}}\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "templates/test/runtests.jlt",
    "content": "using {{{PKG}}}\nusing Test{{{AQUA_IMPORT}}}{{{JET_IMPORT}}}\n\n@testset \"{{{PKG}}}.jl\" begin\n    {{{AQUA_TESTSET}}}{{{JET_TESTSET}}}# Write your tests here.\nend\n"
  },
  {
    "path": "templates/travis.yml",
    "content": "# Documentation: http://docs.travis-ci.com/user/languages/julia\nlanguage: julia\nnotifications:\n  email: false\njulia:\n{{#VERSIONS}}\n  - {{{.}}}\n{{/VERSIONS}}\nos:\n{{#OS}}\n  - {{{.}}}\n{{/OS}}\narch:\n{{#ARCH}}\n  - {{{.}}}\n{{/ARCH}}\ncache:\n  directories:\n    - ~/.julia/artifacts\njobs:\n  fast_finish: true\n{{#HAS_ALLOW_FAILURES}}\n  allow_failures:\n{{/HAS_ALLOW_FAILURES}}\n{{#ALLOW_FAILURES}}\n    - julia: {{{.}}}\n{{/ALLOW_FAILURES}}\n{{#HAS_EXCLUDES}}\n  exclude:\n{{/HAS_EXCLUDES}}\n{{#EXCLUDES}}\n    - arch: {{{E_ARCH}}}\n      {{#E_OS}}\n      os: {{{E_OS}}}\n      {{/E_OS}}\n      {{#E_JULIA}}\n      julia: {{{E_JULIA}}}\n      {{/E_JULIA}}\n{{/EXCLUDES}}\n{{#HAS_DOCUMENTER}}\n  include:\n    - stage: Documentation\n      julia: 1\n      script:\n      - |\n        julia --project=docs -e '\n          using Pkg\n          Pkg.develop(PackageSpec(path=pwd()))\n          Pkg.instantiate()'\n      - |\n        julia --project=docs -e '\n          using Pkg\n          Pkg.develop(PackageSpec(path=pwd()))\n          Pkg.instantiate()\n          using Documenter: DocMeta, doctest\n          using {{{PKG}}}\n          DocMeta.setdocmeta!({{{PKG}}}, :DocTestSetup, :(using {{{PKG}}}); recursive=true)\n          doctest({{{PKG}}})\n          include(\"docs/make.jl\")'\n      after_success: skip\n{{/HAS_DOCUMENTER}}\n{{#HAS_COVERAGE}}\nafter_success:\n{{#HAS_CODECOV}}\n  - |\n    julia -e '\n      using Pkg\n      Pkg.add(\"Coverage\")\n      using Coverage\n      Codecov.submit(process_folder())'\n{{/HAS_CODECOV}}\n{{#HAS_COVERALLS}}\n  - |\n    julia -e '\n      using Pkg\n      Pkg.add(\"Coverage\")\n      using Coverage\n      Coveralls.submit(process_folder())'\n{{/HAS_COVERALLS}}\n{{/HAS_COVERAGE}}\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.JuliaFormatter.toml",
    "content": "# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.appveyor.yml",
    "content": "# Documentation: https://github.com/JuliaCI/Appveyor.jl\nenvironment:\n  matrix:\n    - julia_version: 1.10\n    - julia_version: nightly\nplatform:\n  - x64\ncache:\n  - '%USERPROFILE%\\.julia\\artifacts'\nmatrix:\n  allow_failures:\n    - julia_version: nightly\nbranches:\n  only:\n    - main\n    - /release-.*/\nnotifications:\n  - provider: Email\n    on_build_success: false\n    on_build_failure: false\n    on_build_status_changed: false\ninstall:\n  - ps: iex ((new-object net.webclient).DownloadString(\"https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1\"))\nbuild_script:\n  - echo \"%JL_BUILD_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_BUILD_SCRIPT%\"\ntest_script:\n  - echo \"%JL_TEST_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_TEST_SCRIPT%\"\non_success:\n  - echo \"%JL_CODECOV_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_CODECOV_SCRIPT%\"\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.cirrus.yml",
    "content": "freebsd_instance:\n  image: freebsd-12-0-release-amd64\ntask:\n  name: FreeBSD\n  artifacts_cache:\n    folder: ~/.julia/artifacts\n  env:\n    JULIA_VERSION: 1.10\n    JULIA_VERSION: nightly\n  install_script:\n    - sh -c \"$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)\"\n  build_script:\n    - cirrusjl build\n  test_script:\n    - cirrusjl test\n  coverage_script:\n    - cirrusjl coverage codecov coveralls\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.drone.star",
    "content": "def main(ctx):\n  pipelines = []\n  for arch in [\"amd64\"]:\n    for julia in [\"1.10\"]:\n      pipelines.append(pipeline(arch, julia))\n  return pipelines\n\ndef pipeline(arch, julia):\n  return {\n    \"kind\": \"pipeline\",\n    \"type\": \"docker\",\n    \"name\": \"Julia %s - %s\" % (julia, arch),\n    \"platform\": {\n      \"os\": \"linux\",\n      \"arch\": arch,\n    },\n    \"steps\": [\n      {\n        \"name\": \"test\",\n        \"image\": \"julia:%s\" % julia,\n        \"commands\": [\n          \"julia -e 'using InteractiveUtils; versioninfo()'\",\n          \"julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test();'\",\n        ],\n      },\n    ],\n  }\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - main\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - '1.10'\n          - 'pre'\n        os:\n          - ubuntu-latest\n        arch:\n          - x64\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n      - uses: julia-actions/julia-processcoverage@v1\n      - uses: codecov/codecov-action@v4\n        with:\n          files: lcov.info\n          token: ${{ secrets.CODECOV_TOKEN }}\n          fail_ci_if_error: false\n      - uses: julia-actions/julia-uploadcoveralls@v1\n        env:\n          COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}\n  runic:\n    name: Runic formatting\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: fredrikekre/runic-action@v1\n        with:\n          version: '1'\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.github/workflows/CompatHelper.yml",
    "content": "name: CompatHelper\non:\n  schedule:\n    - cron: 0 0 * * *\n  workflow_dispatch:\njobs:\n  CompatHelper:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Install CompatHelper\n        run: using Pkg; Pkg.add(\"CompatHelper\")\n        shell: julia --color=yes {0}\n      - name: Run CompatHelper\n        run: using CompatHelper; CompatHelper.main()\n        shell: julia --color=yes {0}\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.github/workflows/Register.yml",
    "content": "name: Register Package\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        description: Version to register or component to bump\n        required: true\njobs:\n  register:\n    runs-on: ubuntu-latest\n    permissions:\n        contents: write\n    steps:\n      - uses: julia-actions/RegisterAction@latest\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.gitignore",
    "content": "*.jl.*.cov\n*.jl.cov\n*.jl.mem\n/Manifest*.toml\n/docs/Manifest*.toml\n/docs/build/\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.gitlab-ci.yml",
    "content": ".script:\n  script:\n    - |\n      julia --project=@. -e '\n        using Pkg\n        Pkg.build()\n        Pkg.test(coverage=true)'\n.coverage:\n  coverage: /Test coverage (\\d+\\.\\d+%)/\n  after_script:\n    - |\n      julia -e '\n        using Pkg\n        Pkg.add(\"Coverage\")\n        using Coverage\n        c, t = get_summary(process_folder())\n        using Printf\n        @printf \"Test coverage %.2f%%\\n\" 100c / t'\nJulia 1.10:\n  image: julia:1.10\n  extends:\n    - .script\n    - .coverage\n"
  },
  {
    "path": "test/fixtures/AllPlugins/.travis.yml",
    "content": "# Documentation: http://docs.travis-ci.com/user/languages/julia\nlanguage: julia\nnotifications:\n  email: false\njulia:\n  - 1.10\n  - nightly\nos:\n  - linux\narch:\n  - x64\ncache:\n  directories:\n    - ~/.julia/artifacts\njobs:\n  fast_finish: true\n  allow_failures:\n    - julia: nightly\nafter_success:\n  - |\n    julia -e '\n      using Pkg\n      Pkg.add(\"Coverage\")\n      using Coverage\n      Codecov.submit(process_folder())'\n  - |\n    julia -e '\n      using Pkg\n      Pkg.add(\"Coverage\")\n      using Coverage\n      Coveralls.submit(process_folder())'\n"
  },
  {
    "path": "test/fixtures/AllPlugins/CITATION.bib",
    "content": "@misc{AllPlugins.jl,\n\tauthor  = {tester},\n\ttitle   = {AllPlugins.jl},\n\turl     = {https://github.com/tester/AllPlugins.jl},\n\tversion = {v1.0.0-DEV},\n\tyear    = {2019},\n\tmonth   = {8}\n}\n"
  },
  {
    "path": "test/fixtures/AllPlugins/CODEOWNERS",
    "content": "\n"
  },
  {
    "path": "test/fixtures/AllPlugins/LICENSE",
    "content": "MIT License\n\nCopyright (c) 2019 tester\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "test/fixtures/AllPlugins/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\n"
  },
  {
    "path": "test/fixtures/AllPlugins/Project.toml",
    "content": "name = \"AllPlugins\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nauthors = [\"tester\"]\nversion = \"1.0.0-DEV\"\n\n[compat]\njulia = \"1.10.10\"\n\n[extras]\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[targets]\ntest = [\"Test\"]\n"
  },
  {
    "path": "test/fixtures/AllPlugins/README.md",
    "content": "# AllPlugins\n\n[![Build Status](https://github.com/tester/AllPlugins.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/AllPlugins.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Build Status](https://github.com/tester/AllPlugins.jl/badges/main/pipeline.svg)](https://github.com/tester/AllPlugins.jl/pipelines)\n[![Coverage](https://github.com/tester/AllPlugins.jl/badges/main/coverage.svg)](https://github.com/tester/AllPlugins.jl/commits/main)\n[![Build Status](https://app.travis-ci.com/tester/AllPlugins.jl.svg?branch=main)](https://app.travis-ci.com/tester/AllPlugins.jl)\n[![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/AllPlugins.jl?svg=true)](https://ci.appveyor.com/project/tester/AllPlugins-jl)\n[![Build Status](https://cloud.drone.io/api/badges/tester/AllPlugins.jl/status.svg)](https://cloud.drone.io/tester/AllPlugins.jl)\n[![Build Status](https://api.cirrus-ci.com/github/tester/AllPlugins.jl.svg)](https://cirrus-ci.com/github/tester/AllPlugins.jl)\n[![Coverage](https://codecov.io/gh/tester/AllPlugins.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/tester/AllPlugins.jl)\n[![Coverage](https://coveralls.io/repos/github/tester/AllPlugins.jl/badge.svg?branch=main)](https://coveralls.io/github/tester/AllPlugins.jl?branch=main)\n[![PkgEval](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/A/AllPlugins.svg)](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/A/AllPlugins.html)\n"
  },
  {
    "path": "test/fixtures/AllPlugins/benchmark/benchmarks.jl",
    "content": "using AllPlugins\nusing BenchmarkTools\n\nSUITE = BenchmarkGroup()\nSUITE[\"rand\"] = @benchmarkable rand(10)\n\n# Write your benchmarks here.\n"
  },
  {
    "path": "test/fixtures/AllPlugins/docs/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\njulia_version = \"1.7.2\"\nmanifest_format = \"2.0\"\n\n[[deps.AllPlugins]]\npath = \"..\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nversion = \"1.0.0-DEV\"\n\n[[deps.ArgTools]]\nuuid = \"0dad84c5-d112-42e6-8d28-ef12dabb789f\"\n\n[[deps.Artifacts]]\nuuid = \"56f22d72-fd6d-98f1-02f0-08ddc0907c33\"\n\n[[deps.Base64]]\nuuid = \"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"\n\n[[deps.Dates]]\ndeps = [\"Printf\"]\nuuid = \"ade2ca70-3891-5945-98fb-dc099432e06a\"\n\n[[deps.DocStringExtensions]]\ndeps = [\"LibGit2\", \"Markdown\", \"Pkg\", \"Test\"]\ngit-tree-sha1 = \"88bb0edb352b16608036faadcc071adda068582a\"\nuuid = \"ffbed154-4ef7-542d-bbb7-c09d3a79fcae\"\nversion = \"0.8.1\"\n\n[[deps.Documenter]]\ndeps = [\"Base64\", \"Dates\", \"DocStringExtensions\", \"InteractiveUtils\", \"JSON\", \"LibGit2\", \"Logging\", \"Markdown\", \"REPL\", \"Test\", \"Unicode\"]\ngit-tree-sha1 = \"0be9bf63e854a2408c2ecd3c600d68d4d87d8a73\"\nuuid = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\nversion = \"0.24.2\"\n\n[[deps.Downloads]]\ndeps = [\"ArgTools\", \"LibCURL\", \"NetworkOptions\"]\nuuid = \"f43a241f-c20a-4ad4-852c-f6b1247861c6\"\n\n[[deps.InteractiveUtils]]\ndeps = [\"Markdown\"]\nuuid = \"b77e0a4c-d291-57a0-90e8-8db25a27a240\"\n\n[[deps.JSON]]\ndeps = [\"Dates\", \"Mmap\", \"Parsers\", \"Unicode\"]\ngit-tree-sha1 = \"b34d7cef7b337321e97d22242c3c2b91f476748e\"\nuuid = \"682c06a0-de6a-54ab-a142-c8b1cf79cde6\"\nversion = \"0.21.0\"\n\n[[deps.LibCURL]]\ndeps = [\"LibCURL_jll\", \"MozillaCACerts_jll\"]\nuuid = \"b27032c2-a3e7-50c8-80cd-2d36dbcbfd21\"\n\n[[deps.LibCURL_jll]]\ndeps = [\"Artifacts\", \"LibSSH2_jll\", \"Libdl\", \"MbedTLS_jll\", \"Zlib_jll\", \"nghttp2_jll\"]\nuuid = \"deac9b47-8bc7-5906-a0fe-35ac56dc84c0\"\n\n[[deps.LibGit2]]\ndeps = [\"Base64\", \"NetworkOptions\", \"Printf\", \"SHA\"]\nuuid = \"76f85450-5226-5b5a-8eaa-529ad045b433\"\n\n[[deps.LibSSH2_jll]]\ndeps = [\"Artifacts\", \"Libdl\", \"MbedTLS_jll\"]\nuuid = \"29816b5a-b9ab-546f-933c-edad1886dfa8\"\n\n[[deps.Libdl]]\nuuid = \"8f399da3-3557-5675-b5ff-fb832c97cbdb\"\n\n[[deps.Logging]]\nuuid = \"56ddb016-857b-54e1-b83d-db4d58db5568\"\n\n[[deps.Markdown]]\ndeps = [\"Base64\"]\nuuid = \"d6f4376e-aef5-505a-96c1-9c027394607a\"\n\n[[deps.MbedTLS_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"c8ffd9c3-330d-5841-b78e-0817d7145fa1\"\n\n[[deps.Mmap]]\nuuid = \"a63ad114-7e13-5084-954f-fe012c677804\"\n\n[[deps.MozillaCACerts_jll]]\nuuid = \"14a3606d-f60d-562e-9121-12d972cd8159\"\n\n[[deps.NetworkOptions]]\nuuid = \"ca575930-c2e3-43a9-ace4-1e988b2c1908\"\n\n[[deps.Parsers]]\ndeps = [\"Dates\", \"Test\"]\ngit-tree-sha1 = \"0139ba59ce9bc680e2925aec5b7db79065d60556\"\nuuid = \"69de0a69-1ddd-5017-9359-2bf0b02dc9f0\"\nversion = \"0.3.10\"\n\n[[deps.Pkg]]\ndeps = [\"Artifacts\", \"Dates\", \"Downloads\", \"LibGit2\", \"Libdl\", \"Logging\", \"Markdown\", \"Printf\", \"REPL\", \"Random\", \"SHA\", \"Serialization\", \"TOML\", \"Tar\", \"UUIDs\", \"p7zip_jll\"]\nuuid = \"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\"\n\n[[deps.Printf]]\ndeps = [\"Unicode\"]\nuuid = \"de0858da-6303-5e67-8744-51eddeeeb8d7\"\n\n[[deps.REPL]]\ndeps = [\"InteractiveUtils\", \"Markdown\", \"Sockets\", \"Unicode\"]\nuuid = \"3fa0cd96-eef1-5676-8a61-b3b8758bbffb\"\n\n[[deps.Random]]\ndeps = [\"SHA\", \"Serialization\"]\nuuid = \"9a3f8284-a2c9-5f02-9a11-845980a1fd5c\"\n\n[[deps.SHA]]\nuuid = \"ea8e919c-243c-51af-8825-aaa63cd721ce\"\n\n[[deps.Serialization]]\nuuid = \"9e88b42a-f829-5b0c-bbe9-9e923198166b\"\n\n[[deps.Sockets]]\nuuid = \"6462fe0b-24de-5631-8697-dd941f90decc\"\n\n[[deps.TOML]]\ndeps = [\"Dates\"]\nuuid = \"fa267f1f-6049-4f14-aa54-33bafae1ed76\"\n\n[[deps.Tar]]\ndeps = [\"ArgTools\", \"SHA\"]\nuuid = \"a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e\"\n\n[[deps.Test]]\ndeps = [\"InteractiveUtils\", \"Logging\", \"Random\", \"Serialization\"]\nuuid = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[[deps.UUIDs]]\ndeps = [\"Random\", \"SHA\"]\nuuid = \"cf7118a7-6976-5b1a-9a39-7adc72f591a4\"\n\n[[deps.Unicode]]\nuuid = \"4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5\"\n\n[[deps.Zlib_jll]]\ndeps = [\"Libdl\"]\nuuid = \"83775a58-1f1d-513f-b197-d71354ab007a\"\n\n[[deps.nghttp2_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"8e850ede-7688-5339-a07c-302acd2aaf8d\"\n\n[[deps.p7zip_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"3f19e933-33d8-53b3-aaab-bd5110c3b7a0\"\n"
  },
  {
    "path": "test/fixtures/AllPlugins/docs/Project.toml",
    "content": "[deps]\nDocumenter = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\n"
  },
  {
    "path": "test/fixtures/AllPlugins/docs/make.jl",
    "content": "using AllPlugins\nusing Documenter\n\nDocMeta.setdocmeta!(AllPlugins, :DocTestSetup, :(using AllPlugins); recursive=true)\n\nmakedocs(;\n    modules=[AllPlugins],\n    authors=\"tester\",\n    sitename=\"AllPlugins.jl\",\n    format=Documenter.HTML(;\n        edit_link=\"main\",\n        assets=String[],\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n    ],\n)\n"
  },
  {
    "path": "test/fixtures/AllPlugins/docs/src/index.md",
    "content": "```@meta\nCurrentModule = AllPlugins\n```\n\n# AllPlugins\n\nDocumentation for [AllPlugins](https://github.com/tester/AllPlugins.jl).\n\n```@index\n```\n\n```@autodocs\nModules = [AllPlugins]\n```\n"
  },
  {
    "path": "test/fixtures/AllPlugins/src/AllPlugins.jl",
    "content": "module AllPlugins\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "test/fixtures/AllPlugins/test/runtests.jl",
    "content": "using AllPlugins\nusing Test\n\n@testset \"AllPlugins.jl\" begin\n    # Write your tests here.\nend\n"
  },
  {
    "path": "test/fixtures/Basic/.github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "test/fixtures/Basic/.github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - main\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - '1.10'\n          - 'pre'\n        os:\n          - ubuntu-latest\n        arch:\n          - x64\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n"
  },
  {
    "path": "test/fixtures/Basic/.github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/Basic/.gitignore",
    "content": "/Manifest*.toml\n"
  },
  {
    "path": "test/fixtures/Basic/LICENSE",
    "content": "MIT License\n\nCopyright (c) 2019 tester\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "test/fixtures/Basic/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\n"
  },
  {
    "path": "test/fixtures/Basic/Project.toml",
    "content": "name = \"Basic\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nauthors = [\"tester\"]\nversion = \"1.0.0-DEV\"\n\n[compat]\njulia = \"1.10.10\"\n\n[extras]\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[targets]\ntest = [\"Test\"]\n"
  },
  {
    "path": "test/fixtures/Basic/README.md",
    "content": "# Basic\n\n[![Build Status](https://github.com/tester/Basic.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/Basic.jl/actions/workflows/CI.yml?query=branch%3Amain)\n"
  },
  {
    "path": "test/fixtures/Basic/src/Basic.jl",
    "content": "module Basic\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "test/fixtures/Basic/test/runtests.jl",
    "content": "using Basic\nusing Test\n\n@testset \"Basic.jl\" begin\n    # Write your tests here.\nend\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/.github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/.github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - main\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - '1.10'\n          - 'pre'\n        os:\n          - ubuntu-latest\n        arch:\n          - x64\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n  docs:\n    name: Documentation\n    runs-on: ubuntu-latest\n    permissions:\n      actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      contents: write\n      statuses: write\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: '1'\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-docdeploy@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}\n      - name: Run doctests\n        shell: julia --project=docs --color=yes {0}\n        run: |\n          using Documenter: DocMeta, doctest\n          using DocumenterGitHubActions\n          DocMeta.setdocmeta!(DocumenterGitHubActions, :DocTestSetup, :(using DocumenterGitHubActions); recursive=true)\n          doctest(DocumenterGitHubActions)\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/.github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/.gitignore",
    "content": "/Manifest*.toml\n/docs/Manifest*.toml\n/docs/build/\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/LICENSE",
    "content": "MIT License\n\nCopyright (c) 2019 tester\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/Project.toml",
    "content": "name = \"DocumenterGitHubActions\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nauthors = [\"tester\"]\nversion = \"1.0.0-DEV\"\n\n[compat]\njulia = \"1.10.10\"\n\n[extras]\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[targets]\ntest = [\"Test\"]\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/README.md",
    "content": "# DocumenterGitHubActions\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://tester.github.io/DocumenterGitHubActions.jl/stable/)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.github.io/DocumenterGitHubActions.jl/dev/)\n[![Build Status](https://github.com/tester/DocumenterGitHubActions.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/DocumenterGitHubActions.jl/actions/workflows/CI.yml?query=branch%3Amain)\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/docs/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\njulia_version = \"1.7.2\"\nmanifest_format = \"2.0\"\n\n[[deps.ArgTools]]\nuuid = \"0dad84c5-d112-42e6-8d28-ef12dabb789f\"\n\n[[deps.Artifacts]]\nuuid = \"56f22d72-fd6d-98f1-02f0-08ddc0907c33\"\n\n[[deps.Base64]]\nuuid = \"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"\n\n[[deps.Dates]]\ndeps = [\"Printf\"]\nuuid = \"ade2ca70-3891-5945-98fb-dc099432e06a\"\n\n[[deps.DocStringExtensions]]\ndeps = [\"LibGit2\", \"Markdown\", \"Pkg\", \"Test\"]\ngit-tree-sha1 = \"88bb0edb352b16608036faadcc071adda068582a\"\nuuid = \"ffbed154-4ef7-542d-bbb7-c09d3a79fcae\"\nversion = \"0.8.1\"\n\n[[deps.Documenter]]\ndeps = [\"Base64\", \"Dates\", \"DocStringExtensions\", \"InteractiveUtils\", \"JSON\", \"LibGit2\", \"Logging\", \"Markdown\", \"REPL\", \"Test\", \"Unicode\"]\ngit-tree-sha1 = \"0be9bf63e854a2408c2ecd3c600d68d4d87d8a73\"\nuuid = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\nversion = \"0.24.2\"\n\n[[deps.DocumenterGitHubActions]]\npath = \"..\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nversion = \"1.0.0-DEV\"\n\n[[deps.Downloads]]\ndeps = [\"ArgTools\", \"LibCURL\", \"NetworkOptions\"]\nuuid = \"f43a241f-c20a-4ad4-852c-f6b1247861c6\"\n\n[[deps.InteractiveUtils]]\ndeps = [\"Markdown\"]\nuuid = \"b77e0a4c-d291-57a0-90e8-8db25a27a240\"\n\n[[deps.JSON]]\ndeps = [\"Dates\", \"Mmap\", \"Parsers\", \"Unicode\"]\ngit-tree-sha1 = \"b34d7cef7b337321e97d22242c3c2b91f476748e\"\nuuid = \"682c06a0-de6a-54ab-a142-c8b1cf79cde6\"\nversion = \"0.21.0\"\n\n[[deps.LibCURL]]\ndeps = [\"LibCURL_jll\", \"MozillaCACerts_jll\"]\nuuid = \"b27032c2-a3e7-50c8-80cd-2d36dbcbfd21\"\n\n[[deps.LibCURL_jll]]\ndeps = [\"Artifacts\", \"LibSSH2_jll\", \"Libdl\", \"MbedTLS_jll\", \"Zlib_jll\", \"nghttp2_jll\"]\nuuid = \"deac9b47-8bc7-5906-a0fe-35ac56dc84c0\"\n\n[[deps.LibGit2]]\ndeps = [\"Base64\", \"NetworkOptions\", \"Printf\", \"SHA\"]\nuuid = \"76f85450-5226-5b5a-8eaa-529ad045b433\"\n\n[[deps.LibSSH2_jll]]\ndeps = [\"Artifacts\", \"Libdl\", \"MbedTLS_jll\"]\nuuid = \"29816b5a-b9ab-546f-933c-edad1886dfa8\"\n\n[[deps.Libdl]]\nuuid = \"8f399da3-3557-5675-b5ff-fb832c97cbdb\"\n\n[[deps.Logging]]\nuuid = \"56ddb016-857b-54e1-b83d-db4d58db5568\"\n\n[[deps.Markdown]]\ndeps = [\"Base64\"]\nuuid = \"d6f4376e-aef5-505a-96c1-9c027394607a\"\n\n[[deps.MbedTLS_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"c8ffd9c3-330d-5841-b78e-0817d7145fa1\"\n\n[[deps.Mmap]]\nuuid = \"a63ad114-7e13-5084-954f-fe012c677804\"\n\n[[deps.MozillaCACerts_jll]]\nuuid = \"14a3606d-f60d-562e-9121-12d972cd8159\"\n\n[[deps.NetworkOptions]]\nuuid = \"ca575930-c2e3-43a9-ace4-1e988b2c1908\"\n\n[[deps.Parsers]]\ndeps = [\"Dates\", \"Test\"]\ngit-tree-sha1 = \"0139ba59ce9bc680e2925aec5b7db79065d60556\"\nuuid = \"69de0a69-1ddd-5017-9359-2bf0b02dc9f0\"\nversion = \"0.3.10\"\n\n[[deps.Pkg]]\ndeps = [\"Artifacts\", \"Dates\", \"Downloads\", \"LibGit2\", \"Libdl\", \"Logging\", \"Markdown\", \"Printf\", \"REPL\", \"Random\", \"SHA\", \"Serialization\", \"TOML\", \"Tar\", \"UUIDs\", \"p7zip_jll\"]\nuuid = \"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\"\n\n[[deps.Printf]]\ndeps = [\"Unicode\"]\nuuid = \"de0858da-6303-5e67-8744-51eddeeeb8d7\"\n\n[[deps.REPL]]\ndeps = [\"InteractiveUtils\", \"Markdown\", \"Sockets\", \"Unicode\"]\nuuid = \"3fa0cd96-eef1-5676-8a61-b3b8758bbffb\"\n\n[[deps.Random]]\ndeps = [\"SHA\", \"Serialization\"]\nuuid = \"9a3f8284-a2c9-5f02-9a11-845980a1fd5c\"\n\n[[deps.SHA]]\nuuid = \"ea8e919c-243c-51af-8825-aaa63cd721ce\"\n\n[[deps.Serialization]]\nuuid = \"9e88b42a-f829-5b0c-bbe9-9e923198166b\"\n\n[[deps.Sockets]]\nuuid = \"6462fe0b-24de-5631-8697-dd941f90decc\"\n\n[[deps.TOML]]\ndeps = [\"Dates\"]\nuuid = \"fa267f1f-6049-4f14-aa54-33bafae1ed76\"\n\n[[deps.Tar]]\ndeps = [\"ArgTools\", \"SHA\"]\nuuid = \"a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e\"\n\n[[deps.Test]]\ndeps = [\"InteractiveUtils\", \"Logging\", \"Random\", \"Serialization\"]\nuuid = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[[deps.UUIDs]]\ndeps = [\"Random\", \"SHA\"]\nuuid = \"cf7118a7-6976-5b1a-9a39-7adc72f591a4\"\n\n[[deps.Unicode]]\nuuid = \"4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5\"\n\n[[deps.Zlib_jll]]\ndeps = [\"Libdl\"]\nuuid = \"83775a58-1f1d-513f-b197-d71354ab007a\"\n\n[[deps.nghttp2_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"8e850ede-7688-5339-a07c-302acd2aaf8d\"\n\n[[deps.p7zip_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"3f19e933-33d8-53b3-aaab-bd5110c3b7a0\"\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/docs/Project.toml",
    "content": "[deps]\nDocumenter = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/docs/make.jl",
    "content": "using DocumenterGitHubActions\nusing Documenter\n\nDocMeta.setdocmeta!(DocumenterGitHubActions, :DocTestSetup, :(using DocumenterGitHubActions); recursive=true)\n\nmakedocs(;\n    modules=[DocumenterGitHubActions],\n    authors=\"tester\",\n    sitename=\"DocumenterGitHubActions.jl\",\n    format=Documenter.HTML(;\n        canonical=\"https://tester.github.io/DocumenterGitHubActions.jl\",\n        edit_link=\"main\",\n        assets=String[],\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n    ],\n)\n\ndeploydocs(;\n    repo=\"github.com/tester/DocumenterGitHubActions.jl\",\n    devbranch=\"main\",\n)\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/docs/src/index.md",
    "content": "```@meta\nCurrentModule = DocumenterGitHubActions\n```\n\n# DocumenterGitHubActions\n\nDocumentation for [DocumenterGitHubActions](https://github.com/tester/DocumenterGitHubActions.jl).\n\n```@index\n```\n\n```@autodocs\nModules = [DocumenterGitHubActions]\n```\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/src/DocumenterGitHubActions.jl",
    "content": "module DocumenterGitHubActions\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "test/fixtures/DocumenterGitHubActions/test/runtests.jl",
    "content": "using DocumenterGitHubActions\nusing Test\n\n@testset \"DocumenterGitHubActions.jl\" begin\n    # Write your tests here.\nend\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/.github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/.github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - main\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - '1.10'\n          - 'pre'\n        os:\n          - ubuntu-latest\n        arch:\n          - x64\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/.github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/.gitignore",
    "content": "*.jl.*.cov\n*.jl.cov\n*.jl.mem\n/Manifest*.toml\n/docs/Manifest*.toml\n/docs/build/\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/.gitlab-ci.yml",
    "content": ".script:\n  script:\n    - |\n      julia --project=@. -e '\n        using Pkg\n        Pkg.build()\n        Pkg.test(coverage=true)'\n.coverage:\n  coverage: /Test coverage (\\d+\\.\\d+%)/\n  after_script:\n    - |\n      julia -e '\n        using Pkg\n        Pkg.add(\"Coverage\")\n        using Coverage\n        c, t = get_summary(process_folder())\n        using Printf\n        @printf \"Test coverage %.2f%%\\n\" 100c / t'\nJulia 1.10:\n  image: julia:1.10\n  extends:\n    - .script\n    - .coverage\npages:\n  image: julia:1.10\n  stage: deploy\n  script:\n    - |\n      julia --project=docs -e '\n        using Pkg\n        Pkg.develop(PackageSpec(path=pwd()))\n        Pkg.instantiate()\n        using Documenter: doctest\n        using DocumenterGitLabCI\n        doctest(DocumenterGitLabCI)\n        include(\"docs/make.jl\")'\n    - mkdir -p public\n    - mv docs/build public/dev\n  artifacts:\n    paths:\n      - public\n  only:\n    - main\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/LICENSE",
    "content": "MIT License\n\nCopyright (c) 2019 tester\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/Project.toml",
    "content": "name = \"DocumenterGitLabCI\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nauthors = [\"tester\"]\nversion = \"1.0.0-DEV\"\n\n[compat]\njulia = \"1.10.10\"\n\n[extras]\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[targets]\ntest = [\"Test\"]\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/README.md",
    "content": "# DocumenterGitLabCI\n\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.gitlab.io/DocumenterGitLabCI.jl/dev)\n[![Build Status](https://github.com/tester/DocumenterGitLabCI.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/DocumenterGitLabCI.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Build Status](https://github.com/tester/DocumenterGitLabCI.jl/badges/main/pipeline.svg)](https://github.com/tester/DocumenterGitLabCI.jl/pipelines)\n[![Coverage](https://github.com/tester/DocumenterGitLabCI.jl/badges/main/coverage.svg)](https://github.com/tester/DocumenterGitLabCI.jl/commits/main)\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/docs/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\njulia_version = \"1.7.2\"\nmanifest_format = \"2.0\"\n\n[[deps.ArgTools]]\nuuid = \"0dad84c5-d112-42e6-8d28-ef12dabb789f\"\n\n[[deps.Artifacts]]\nuuid = \"56f22d72-fd6d-98f1-02f0-08ddc0907c33\"\n\n[[deps.Base64]]\nuuid = \"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"\n\n[[deps.Dates]]\ndeps = [\"Printf\"]\nuuid = \"ade2ca70-3891-5945-98fb-dc099432e06a\"\n\n[[deps.DocStringExtensions]]\ndeps = [\"LibGit2\", \"Markdown\", \"Pkg\", \"Test\"]\ngit-tree-sha1 = \"88bb0edb352b16608036faadcc071adda068582a\"\nuuid = \"ffbed154-4ef7-542d-bbb7-c09d3a79fcae\"\nversion = \"0.8.1\"\n\n[[deps.Documenter]]\ndeps = [\"Base64\", \"Dates\", \"DocStringExtensions\", \"InteractiveUtils\", \"JSON\", \"LibGit2\", \"Logging\", \"Markdown\", \"REPL\", \"Test\", \"Unicode\"]\ngit-tree-sha1 = \"0be9bf63e854a2408c2ecd3c600d68d4d87d8a73\"\nuuid = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\nversion = \"0.24.2\"\n\n[[deps.DocumenterGitLabCI]]\npath = \"..\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nversion = \"1.0.0-DEV\"\n\n[[deps.Downloads]]\ndeps = [\"ArgTools\", \"LibCURL\", \"NetworkOptions\"]\nuuid = \"f43a241f-c20a-4ad4-852c-f6b1247861c6\"\n\n[[deps.InteractiveUtils]]\ndeps = [\"Markdown\"]\nuuid = \"b77e0a4c-d291-57a0-90e8-8db25a27a240\"\n\n[[deps.JSON]]\ndeps = [\"Dates\", \"Mmap\", \"Parsers\", \"Unicode\"]\ngit-tree-sha1 = \"b34d7cef7b337321e97d22242c3c2b91f476748e\"\nuuid = \"682c06a0-de6a-54ab-a142-c8b1cf79cde6\"\nversion = \"0.21.0\"\n\n[[deps.LibCURL]]\ndeps = [\"LibCURL_jll\", \"MozillaCACerts_jll\"]\nuuid = \"b27032c2-a3e7-50c8-80cd-2d36dbcbfd21\"\n\n[[deps.LibCURL_jll]]\ndeps = [\"Artifacts\", \"LibSSH2_jll\", \"Libdl\", \"MbedTLS_jll\", \"Zlib_jll\", \"nghttp2_jll\"]\nuuid = \"deac9b47-8bc7-5906-a0fe-35ac56dc84c0\"\n\n[[deps.LibGit2]]\ndeps = [\"Base64\", \"NetworkOptions\", \"Printf\", \"SHA\"]\nuuid = \"76f85450-5226-5b5a-8eaa-529ad045b433\"\n\n[[deps.LibSSH2_jll]]\ndeps = [\"Artifacts\", \"Libdl\", \"MbedTLS_jll\"]\nuuid = \"29816b5a-b9ab-546f-933c-edad1886dfa8\"\n\n[[deps.Libdl]]\nuuid = \"8f399da3-3557-5675-b5ff-fb832c97cbdb\"\n\n[[deps.Logging]]\nuuid = \"56ddb016-857b-54e1-b83d-db4d58db5568\"\n\n[[deps.Markdown]]\ndeps = [\"Base64\"]\nuuid = \"d6f4376e-aef5-505a-96c1-9c027394607a\"\n\n[[deps.MbedTLS_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"c8ffd9c3-330d-5841-b78e-0817d7145fa1\"\n\n[[deps.Mmap]]\nuuid = \"a63ad114-7e13-5084-954f-fe012c677804\"\n\n[[deps.MozillaCACerts_jll]]\nuuid = \"14a3606d-f60d-562e-9121-12d972cd8159\"\n\n[[deps.NetworkOptions]]\nuuid = \"ca575930-c2e3-43a9-ace4-1e988b2c1908\"\n\n[[deps.Parsers]]\ndeps = [\"Dates\", \"Test\"]\ngit-tree-sha1 = \"0139ba59ce9bc680e2925aec5b7db79065d60556\"\nuuid = \"69de0a69-1ddd-5017-9359-2bf0b02dc9f0\"\nversion = \"0.3.10\"\n\n[[deps.Pkg]]\ndeps = [\"Artifacts\", \"Dates\", \"Downloads\", \"LibGit2\", \"Libdl\", \"Logging\", \"Markdown\", \"Printf\", \"REPL\", \"Random\", \"SHA\", \"Serialization\", \"TOML\", \"Tar\", \"UUIDs\", \"p7zip_jll\"]\nuuid = \"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\"\n\n[[deps.Printf]]\ndeps = [\"Unicode\"]\nuuid = \"de0858da-6303-5e67-8744-51eddeeeb8d7\"\n\n[[deps.REPL]]\ndeps = [\"InteractiveUtils\", \"Markdown\", \"Sockets\", \"Unicode\"]\nuuid = \"3fa0cd96-eef1-5676-8a61-b3b8758bbffb\"\n\n[[deps.Random]]\ndeps = [\"SHA\", \"Serialization\"]\nuuid = \"9a3f8284-a2c9-5f02-9a11-845980a1fd5c\"\n\n[[deps.SHA]]\nuuid = \"ea8e919c-243c-51af-8825-aaa63cd721ce\"\n\n[[deps.Serialization]]\nuuid = \"9e88b42a-f829-5b0c-bbe9-9e923198166b\"\n\n[[deps.Sockets]]\nuuid = \"6462fe0b-24de-5631-8697-dd941f90decc\"\n\n[[deps.TOML]]\ndeps = [\"Dates\"]\nuuid = \"fa267f1f-6049-4f14-aa54-33bafae1ed76\"\n\n[[deps.Tar]]\ndeps = [\"ArgTools\", \"SHA\"]\nuuid = \"a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e\"\n\n[[deps.Test]]\ndeps = [\"InteractiveUtils\", \"Logging\", \"Random\", \"Serialization\"]\nuuid = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[[deps.UUIDs]]\ndeps = [\"Random\", \"SHA\"]\nuuid = \"cf7118a7-6976-5b1a-9a39-7adc72f591a4\"\n\n[[deps.Unicode]]\nuuid = \"4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5\"\n\n[[deps.Zlib_jll]]\ndeps = [\"Libdl\"]\nuuid = \"83775a58-1f1d-513f-b197-d71354ab007a\"\n\n[[deps.nghttp2_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"8e850ede-7688-5339-a07c-302acd2aaf8d\"\n\n[[deps.p7zip_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"3f19e933-33d8-53b3-aaab-bd5110c3b7a0\"\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/docs/Project.toml",
    "content": "[deps]\nDocumenter = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/docs/make.jl",
    "content": "using DocumenterGitLabCI\nusing Documenter\n\nDocMeta.setdocmeta!(DocumenterGitLabCI, :DocTestSetup, :(using DocumenterGitLabCI); recursive=true)\n\nmakedocs(;\n    modules=[DocumenterGitLabCI],\n    authors=\"tester\",\n    sitename=\"DocumenterGitLabCI.jl\",\n    format=Documenter.HTML(;\n        canonical=\"https://tester.gitlab.io/DocumenterGitLabCI.jl\",\n        edit_link=\"main\",\n        assets=String[],\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n    ],\n)\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/docs/src/index.md",
    "content": "```@meta\nCurrentModule = DocumenterGitLabCI\n```\n\n# DocumenterGitLabCI\n\nDocumentation for [DocumenterGitLabCI](https://github.com/tester/DocumenterGitLabCI.jl).\n\n```@index\n```\n\n```@autodocs\nModules = [DocumenterGitLabCI]\n```\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/src/DocumenterGitLabCI.jl",
    "content": "module DocumenterGitLabCI\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "test/fixtures/DocumenterGitLabCI/test/runtests.jl",
    "content": "using DocumenterGitLabCI\nusing Test\n\n@testset \"DocumenterGitLabCI.jl\" begin\n    # Write your tests here.\nend\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/.github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/.github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - main\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - '1.10'\n          - 'pre'\n        os:\n          - ubuntu-latest\n        arch:\n          - x64\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/.github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/.gitignore",
    "content": "/Manifest*.toml\n/docs/Manifest*.toml\n/docs/build/\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/.travis.yml",
    "content": "# Documentation: http://docs.travis-ci.com/user/languages/julia\nlanguage: julia\nnotifications:\n  email: false\njulia:\n  - 1.10\n  - nightly\nos:\n  - linux\narch:\n  - x64\ncache:\n  directories:\n    - ~/.julia/artifacts\njobs:\n  fast_finish: true\n  allow_failures:\n    - julia: nightly\n  include:\n    - stage: Documentation\n      julia: 1\n      script:\n      - |\n        julia --project=docs -e '\n          using Pkg\n          Pkg.develop(PackageSpec(path=pwd()))\n          Pkg.instantiate()'\n      - |\n        julia --project=docs -e '\n          using Pkg\n          Pkg.develop(PackageSpec(path=pwd()))\n          Pkg.instantiate()\n          using Documenter: DocMeta, doctest\n          using DocumenterTravis\n          DocMeta.setdocmeta!(DocumenterTravis, :DocTestSetup, :(using DocumenterTravis); recursive=true)\n          doctest(DocumenterTravis)\n          include(\"docs/make.jl\")'\n      after_success: skip\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/LICENSE",
    "content": "MIT License\n\nCopyright (c) 2019 tester\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/Project.toml",
    "content": "name = \"DocumenterTravis\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nauthors = [\"tester\"]\nversion = \"1.0.0-DEV\"\n\n[compat]\njulia = \"1.10.10\"\n\n[extras]\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[targets]\ntest = [\"Test\"]\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/README.md",
    "content": "# DocumenterTravis\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://tester.github.io/DocumenterTravis.jl/stable/)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.github.io/DocumenterTravis.jl/dev/)\n[![Build Status](https://github.com/tester/DocumenterTravis.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/DocumenterTravis.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Build Status](https://app.travis-ci.com/tester/DocumenterTravis.jl.svg?branch=main)](https://app.travis-ci.com/tester/DocumenterTravis.jl)\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/docs/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\njulia_version = \"1.7.2\"\nmanifest_format = \"2.0\"\n\n[[deps.ArgTools]]\nuuid = \"0dad84c5-d112-42e6-8d28-ef12dabb789f\"\n\n[[deps.Artifacts]]\nuuid = \"56f22d72-fd6d-98f1-02f0-08ddc0907c33\"\n\n[[deps.Base64]]\nuuid = \"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"\n\n[[deps.Dates]]\ndeps = [\"Printf\"]\nuuid = \"ade2ca70-3891-5945-98fb-dc099432e06a\"\n\n[[deps.DocStringExtensions]]\ndeps = [\"LibGit2\", \"Markdown\", \"Pkg\", \"Test\"]\ngit-tree-sha1 = \"88bb0edb352b16608036faadcc071adda068582a\"\nuuid = \"ffbed154-4ef7-542d-bbb7-c09d3a79fcae\"\nversion = \"0.8.1\"\n\n[[deps.Documenter]]\ndeps = [\"Base64\", \"Dates\", \"DocStringExtensions\", \"InteractiveUtils\", \"JSON\", \"LibGit2\", \"Logging\", \"Markdown\", \"REPL\", \"Test\", \"Unicode\"]\ngit-tree-sha1 = \"0be9bf63e854a2408c2ecd3c600d68d4d87d8a73\"\nuuid = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\nversion = \"0.24.2\"\n\n[[deps.DocumenterTravis]]\npath = \"..\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nversion = \"1.0.0-DEV\"\n\n[[deps.Downloads]]\ndeps = [\"ArgTools\", \"LibCURL\", \"NetworkOptions\"]\nuuid = \"f43a241f-c20a-4ad4-852c-f6b1247861c6\"\n\n[[deps.InteractiveUtils]]\ndeps = [\"Markdown\"]\nuuid = \"b77e0a4c-d291-57a0-90e8-8db25a27a240\"\n\n[[deps.JSON]]\ndeps = [\"Dates\", \"Mmap\", \"Parsers\", \"Unicode\"]\ngit-tree-sha1 = \"b34d7cef7b337321e97d22242c3c2b91f476748e\"\nuuid = \"682c06a0-de6a-54ab-a142-c8b1cf79cde6\"\nversion = \"0.21.0\"\n\n[[deps.LibCURL]]\ndeps = [\"LibCURL_jll\", \"MozillaCACerts_jll\"]\nuuid = \"b27032c2-a3e7-50c8-80cd-2d36dbcbfd21\"\n\n[[deps.LibCURL_jll]]\ndeps = [\"Artifacts\", \"LibSSH2_jll\", \"Libdl\", \"MbedTLS_jll\", \"Zlib_jll\", \"nghttp2_jll\"]\nuuid = \"deac9b47-8bc7-5906-a0fe-35ac56dc84c0\"\n\n[[deps.LibGit2]]\ndeps = [\"Base64\", \"NetworkOptions\", \"Printf\", \"SHA\"]\nuuid = \"76f85450-5226-5b5a-8eaa-529ad045b433\"\n\n[[deps.LibSSH2_jll]]\ndeps = [\"Artifacts\", \"Libdl\", \"MbedTLS_jll\"]\nuuid = \"29816b5a-b9ab-546f-933c-edad1886dfa8\"\n\n[[deps.Libdl]]\nuuid = \"8f399da3-3557-5675-b5ff-fb832c97cbdb\"\n\n[[deps.Logging]]\nuuid = \"56ddb016-857b-54e1-b83d-db4d58db5568\"\n\n[[deps.Markdown]]\ndeps = [\"Base64\"]\nuuid = \"d6f4376e-aef5-505a-96c1-9c027394607a\"\n\n[[deps.MbedTLS_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"c8ffd9c3-330d-5841-b78e-0817d7145fa1\"\n\n[[deps.Mmap]]\nuuid = \"a63ad114-7e13-5084-954f-fe012c677804\"\n\n[[deps.MozillaCACerts_jll]]\nuuid = \"14a3606d-f60d-562e-9121-12d972cd8159\"\n\n[[deps.NetworkOptions]]\nuuid = \"ca575930-c2e3-43a9-ace4-1e988b2c1908\"\n\n[[deps.Parsers]]\ndeps = [\"Dates\", \"Test\"]\ngit-tree-sha1 = \"0139ba59ce9bc680e2925aec5b7db79065d60556\"\nuuid = \"69de0a69-1ddd-5017-9359-2bf0b02dc9f0\"\nversion = \"0.3.10\"\n\n[[deps.Pkg]]\ndeps = [\"Artifacts\", \"Dates\", \"Downloads\", \"LibGit2\", \"Libdl\", \"Logging\", \"Markdown\", \"Printf\", \"REPL\", \"Random\", \"SHA\", \"Serialization\", \"TOML\", \"Tar\", \"UUIDs\", \"p7zip_jll\"]\nuuid = \"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\"\n\n[[deps.Printf]]\ndeps = [\"Unicode\"]\nuuid = \"de0858da-6303-5e67-8744-51eddeeeb8d7\"\n\n[[deps.REPL]]\ndeps = [\"InteractiveUtils\", \"Markdown\", \"Sockets\", \"Unicode\"]\nuuid = \"3fa0cd96-eef1-5676-8a61-b3b8758bbffb\"\n\n[[deps.Random]]\ndeps = [\"SHA\", \"Serialization\"]\nuuid = \"9a3f8284-a2c9-5f02-9a11-845980a1fd5c\"\n\n[[deps.SHA]]\nuuid = \"ea8e919c-243c-51af-8825-aaa63cd721ce\"\n\n[[deps.Serialization]]\nuuid = \"9e88b42a-f829-5b0c-bbe9-9e923198166b\"\n\n[[deps.Sockets]]\nuuid = \"6462fe0b-24de-5631-8697-dd941f90decc\"\n\n[[deps.TOML]]\ndeps = [\"Dates\"]\nuuid = \"fa267f1f-6049-4f14-aa54-33bafae1ed76\"\n\n[[deps.Tar]]\ndeps = [\"ArgTools\", \"SHA\"]\nuuid = \"a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e\"\n\n[[deps.Test]]\ndeps = [\"InteractiveUtils\", \"Logging\", \"Random\", \"Serialization\"]\nuuid = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[[deps.UUIDs]]\ndeps = [\"Random\", \"SHA\"]\nuuid = \"cf7118a7-6976-5b1a-9a39-7adc72f591a4\"\n\n[[deps.Unicode]]\nuuid = \"4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5\"\n\n[[deps.Zlib_jll]]\ndeps = [\"Libdl\"]\nuuid = \"83775a58-1f1d-513f-b197-d71354ab007a\"\n\n[[deps.nghttp2_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"8e850ede-7688-5339-a07c-302acd2aaf8d\"\n\n[[deps.p7zip_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"3f19e933-33d8-53b3-aaab-bd5110c3b7a0\"\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/docs/Project.toml",
    "content": "[deps]\nDocumenter = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/docs/make.jl",
    "content": "using DocumenterTravis\nusing Documenter\n\nDocMeta.setdocmeta!(DocumenterTravis, :DocTestSetup, :(using DocumenterTravis); recursive=true)\n\nmakedocs(;\n    modules=[DocumenterTravis],\n    authors=\"tester\",\n    sitename=\"DocumenterTravis.jl\",\n    format=Documenter.HTML(;\n        canonical=\"https://tester.github.io/DocumenterTravis.jl\",\n        edit_link=\"main\",\n        assets=String[],\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n    ],\n)\n\ndeploydocs(;\n    repo=\"github.com/tester/DocumenterTravis.jl\",\n    devbranch=\"main\",\n)\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/docs/src/index.md",
    "content": "```@meta\nCurrentModule = DocumenterTravis\n```\n\n# DocumenterTravis\n\nDocumentation for [DocumenterTravis](https://github.com/tester/DocumenterTravis.jl).\n\n```@index\n```\n\n```@autodocs\nModules = [DocumenterTravis]\n```\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/src/DocumenterTravis.jl",
    "content": "module DocumenterTravis\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "test/fixtures/DocumenterTravis/test/runtests.jl",
    "content": "using DocumenterTravis\nusing Test\n\n@testset \"DocumenterTravis.jl\" begin\n    # Write your tests here.\nend\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.JuliaFormatter.toml",
    "content": "# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options\nstyle = \"blue\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.appveyor.yml",
    "content": "# Documentation: https://github.com/JuliaCI/Appveyor.jl\nenvironment:\n  matrix:\n    - julia_version: 1.2\nplatform:\n  - x64\n  - x86\ncache:\n  - '%USERPROFILE%\\.julia\\artifacts'\nbranches:\n  only:\n    - whackybranch\n    - /release-.*/\nnotifications:\n  - provider: Email\n    on_build_success: false\n    on_build_failure: false\n    on_build_status_changed: false\ninstall:\n  - ps: iex ((new-object net.webclient).DownloadString(\"https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1\"))\nbuild_script:\n  - echo \"%JL_BUILD_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_BUILD_SCRIPT%\"\ntest_script:\n  - echo \"%JL_TEST_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_TEST_SCRIPT%\"\non_success:\n  - echo \"%JL_CODECOV_SCRIPT%\"\n  - C:\\julia\\bin\\julia -e \"%JL_CODECOV_SCRIPT%\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.cirrus.yml",
    "content": "freebsd_instance:\n  image: freebsd-123\ntask:\n  name: FreeBSD\n  artifacts_cache:\n    folder: ~/.julia/artifacts\n  env:\n    JULIA_VERSION: 1.2\n    JULIA_VERSION: 1.3\n  install_script:\n    - sh -c \"$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)\"\n  build_script:\n    - cirrusjl build\n  test_script:\n    - cirrusjl test\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.codecov.yml",
    "content": "DO NOT CHANGE THE CONTENTS OF THIS FILE!\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.coveralls.yml",
    "content": "DO NOT CHANGE THE CONTENTS OF THIS FILE!\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.drone.star",
    "content": "def main(ctx):\n  pipelines = []\n  for arch in [\"arm\", \"arm64\"]:\n    for julia in [\"1.2\", \"1.3\"]:\n      pipelines.append(pipeline(arch, julia))\n  return pipelines\n\ndef pipeline(arch, julia):\n  return {\n    \"kind\": \"pipeline\",\n    \"type\": \"docker\",\n    \"name\": \"Julia %s - %s\" % (julia, arch),\n    \"platform\": {\n      \"os\": \"linux\",\n      \"arch\": arch,\n    },\n    \"steps\": [\n      {\n        \"name\": \"test\",\n        \"image\": \"julia:%s\" % julia,\n        \"commands\": [\n          \"julia -e 'using InteractiveUtils; versioninfo()'\",\n          \"julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test();'\",\n        ],\n      },\n    ],\n  }\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.github/dependabot.yml",
    "content": "# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"weekly\"\n    # To group all GitHub Actions updates into a single PR, uncomment the following:\n    # groups:\n    #   github-actions:\n    #     patterns:\n    #       - \"*\"\n  - package-ecosystem: \"julia\"\n    directories:\n      - \"/\"\n      - \"/docs\"\n      - \"/test\"\n    schedule:\n      interval: \"weekly\"\n    # To group all Julia dependency updates into a single PR, uncomment the following:\n    # groups:\n    #   julia-dependencies:\n    #     patterns:\n    #       - \"*\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.github/workflows/CI.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - whackybranch\n    tags: ['*']\n  pull_request:\n  workflow_dispatch:\nconcurrency:\n  # Skip intermediate builds: always.\n  # Cancel intermediate builds: only if it is a pull request build.\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}\njobs:\n  test:\n    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}\n    runs-on: ${{ matrix.os }}\n    timeout-minutes: 60\n    permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      actions: write\n      contents: read\n    strategy:\n      fail-fast: false\n      matrix:\n        version:\n          - '1.10'\n          - '1.2'\n          - 'pre'\n        os:\n        arch:\n          - x64\n          - x86\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: ${{ matrix.version }}\n          arch: ${{ matrix.arch }}\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-runtest@v1\n  docs:\n    name: Documentation\n    runs-on: ubuntu-latest\n    permissions:\n      actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created\n      contents: write\n      statuses: write\n    steps:\n      - uses: actions/checkout@v6\n      - uses: julia-actions/setup-julia@v2\n        with:\n          version: '1'\n      - uses: julia-actions/cache@v2\n      - uses: julia-actions/julia-buildpkg@v1\n      - uses: julia-actions/julia-docdeploy@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}\n      - name: Run doctests\n        shell: julia --project=docs --color=yes {0}\n        run: |\n          using Documenter: DocMeta, doctest\n          using WackyOptions\n          DocMeta.setdocmeta!(WackyOptions, :DocTestSetup, :(using WackyOptions); recursive=true)\n          doctest(WackyOptions)\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.github/workflows/CompatHelper.yml",
    "content": "name: CompatHelper\non:\n  schedule:\n    - cron: 0 0 */3 * *\n  workflow_dispatch:\njobs:\n  CompatHelper:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Install CompatHelper\n        run: using Pkg; Pkg.add(\"CompatHelper\")\n        shell: julia --color=yes {0}\n      - name: Run CompatHelper\n        run: using CompatHelper; CompatHelper.main()\n        shell: julia --color=yes {0}\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.github/workflows/Register.yml",
    "content": "name: Register Package\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        description: gimme version\n        required: true\njobs:\n  register:\n    runs-on: ubuntu-latest\n    permissions:\n        contents: write\n    steps:\n      - uses: julia-actions/RegisterAction@latest\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.github/workflows/TagBot.yml",
    "content": "name: TagBot\non:\n  issue_comment:\n    types:\n      - created\n  workflow_dispatch:\njobs:\n  TagBot:\n    if: github.event_name == 'workflow_dispatch' || github.actor == 'OtherUser'\n    runs-on: ubuntu-latest\n    steps:\n      - uses: JuliaRegistries/TagBot@v1\n        with:\n          token: ${{ secrets.MYTOKEN }}\n          # For commits that modify workflow files: SSH key enables tagging, but\n          # releases require manual creation. For full automation of such commits,\n          # use a PAT with `workflow` scope instead of GITHUB_TOKEN.\n          # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files\n          ssh: ${{ secrets.SSHKEY }}\n          ssh_password: ${{ secrets.SSHPASS }}\n          changelog: |\n            Line 1\n            Line 2\n\n            Line 4\n          changelog_ignore: foo, bar\n          gpg: ${{ secrets.GPGKEY }}\n          gpg_password: ${{ secrets.GPGPASS }}\n          registry: Foo/Bar\n          branches: false\n          dispatch: true\n          dispatch_delay: 20\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.gitignore",
    "content": "*.jl.*.cov\n*.jl.cov\n*.jl.mem\n/docs/Manifest*.toml\n/docs/build/\na\nb\nc\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.gitlab-ci.yml",
    "content": ".script:\n  script:\n    - |\n      julia --project=@. -e '\n        using Pkg\n        Pkg.build()\n        Pkg.test()'\nJulia 1.2:\n  image: julia:1.2\n  extends:\n    - .script\n"
  },
  {
    "path": "test/fixtures/WackyOptions/.travis.yml",
    "content": "# Documentation: http://docs.travis-ci.com/user/languages/julia\nlanguage: julia\nnotifications:\n  email: false\njulia:\n  - 1.2\nos:\n  - linux\narch:\n  - x64\n  - x86\n  - arm64\ncache:\n  directories:\n    - ~/.julia/artifacts\njobs:\n  fast_finish: true\n"
  },
  {
    "path": "test/fixtures/WackyOptions/CITATION.bib",
    "content": "@misc{WackyOptions.jl,\n\tauthor  = {tester},\n\ttitle   = {WackyOptions.jl},\n\turl     = {https://x.com/tester/WackyOptions.jl},\n\tversion = {v1.0.0},\n\tyear    = {2019},\n\tmonth   = {8}\n}\n"
  },
  {
    "path": "test/fixtures/WackyOptions/CODEOWNERS",
    "content": "* @user\nREADME.md @group user@example.com\n"
  },
  {
    "path": "test/fixtures/WackyOptions/LICENSE",
    "content": "ISC License\n\nCopyright (c) 2019, tester\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"
  },
  {
    "path": "test/fixtures/WackyOptions/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\njulia_version = \"1.10.6\"\nmanifest_format = \"2.0\"\nproject_hash = \"4cda5991eecc2e1d07ef87b0be009754a63f367f\"\n\n[deps]\n"
  },
  {
    "path": "test/fixtures/WackyOptions/Project.toml",
    "content": "name = \"WackyOptions\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nauthors = [\"tester\"]\nversion = \"1.0.0\"\n\n[compat]\njulia = \"1.2\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/README.md",
    "content": "# WackyOptions [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://tester.github.io/WackyOptions.jl/stable/) [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.github.io/WackyOptions.jl/dev/) [![Build Status](https://github.com/tester/WackyOptions.jl/actions/workflows/CI.yml/badge.svg?branch=whackybranch)](https://github.com/tester/WackyOptions.jl/actions/workflows/CI.yml?query=branch%3Awhackybranch) [![Build Status](https://x.com/tester/WackyOptions.jl/badges/whackybranch/pipeline.svg)](https://x.com/tester/WackyOptions.jl/pipelines) [![Build Status](https://app.travis-ci.com/tester/WackyOptions.jl.svg?branch=whackybranch)](https://app.travis-ci.com/tester/WackyOptions.jl) [![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/WackyOptions.jl?svg=true)](https://ci.appveyor.com/project/tester/WackyOptions-jl) [![Build Status](https://cloud.drone.io/api/badges/tester/WackyOptions.jl/status.svg)](https://cloud.drone.io/tester/WackyOptions.jl) [![Build Status](https://api.cirrus-ci.com/github/tester/WackyOptions.jl.svg)](https://cirrus-ci.com/github/tester/WackyOptions.jl) [![Coverage](https://coveralls.io/repos/github/tester/WackyOptions.jl/badge.svg?branch=whackybranch)](https://coveralls.io/github/tester/WackyOptions.jl?branch=whackybranch) [![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)\n\n## Citing\n\nSee [`CITATION.bib`](CITATION.bib) for the relevant reference(s).\n"
  },
  {
    "path": "test/fixtures/WackyOptions/docs/Manifest.toml",
    "content": "# This file is machine-generated - editing it directly is not advised\n\njulia_version = \"1.7.2\"\nmanifest_format = \"2.0\"\n\n[[deps.ArgTools]]\nuuid = \"0dad84c5-d112-42e6-8d28-ef12dabb789f\"\n\n[[deps.Artifacts]]\nuuid = \"56f22d72-fd6d-98f1-02f0-08ddc0907c33\"\n\n[[deps.Base64]]\nuuid = \"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"\n\n[[deps.Dates]]\ndeps = [\"Printf\"]\nuuid = \"ade2ca70-3891-5945-98fb-dc099432e06a\"\n\n[[deps.DocStringExtensions]]\ndeps = [\"LibGit2\", \"Markdown\", \"Pkg\", \"Test\"]\ngit-tree-sha1 = \"88bb0edb352b16608036faadcc071adda068582a\"\nuuid = \"ffbed154-4ef7-542d-bbb7-c09d3a79fcae\"\nversion = \"0.8.1\"\n\n[[deps.Documenter]]\ndeps = [\"Base64\", \"Dates\", \"DocStringExtensions\", \"InteractiveUtils\", \"JSON\", \"LibGit2\", \"Logging\", \"Markdown\", \"REPL\", \"Test\", \"Unicode\"]\ngit-tree-sha1 = \"0be9bf63e854a2408c2ecd3c600d68d4d87d8a73\"\nuuid = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\nversion = \"0.24.2\"\n\n[[deps.Downloads]]\ndeps = [\"ArgTools\", \"LibCURL\", \"NetworkOptions\"]\nuuid = \"f43a241f-c20a-4ad4-852c-f6b1247861c6\"\n\n[[deps.InteractiveUtils]]\ndeps = [\"Markdown\"]\nuuid = \"b77e0a4c-d291-57a0-90e8-8db25a27a240\"\n\n[[deps.JSON]]\ndeps = [\"Dates\", \"Mmap\", \"Parsers\", \"Unicode\"]\ngit-tree-sha1 = \"b34d7cef7b337321e97d22242c3c2b91f476748e\"\nuuid = \"682c06a0-de6a-54ab-a142-c8b1cf79cde6\"\nversion = \"0.21.0\"\n\n[[deps.LibCURL]]\ndeps = [\"LibCURL_jll\", \"MozillaCACerts_jll\"]\nuuid = \"b27032c2-a3e7-50c8-80cd-2d36dbcbfd21\"\n\n[[deps.LibCURL_jll]]\ndeps = [\"Artifacts\", \"LibSSH2_jll\", \"Libdl\", \"MbedTLS_jll\", \"Zlib_jll\", \"nghttp2_jll\"]\nuuid = \"deac9b47-8bc7-5906-a0fe-35ac56dc84c0\"\n\n[[deps.LibGit2]]\ndeps = [\"Base64\", \"NetworkOptions\", \"Printf\", \"SHA\"]\nuuid = \"76f85450-5226-5b5a-8eaa-529ad045b433\"\n\n[[deps.LibSSH2_jll]]\ndeps = [\"Artifacts\", \"Libdl\", \"MbedTLS_jll\"]\nuuid = \"29816b5a-b9ab-546f-933c-edad1886dfa8\"\n\n[[deps.Libdl]]\nuuid = \"8f399da3-3557-5675-b5ff-fb832c97cbdb\"\n\n[[deps.Logging]]\nuuid = \"56ddb016-857b-54e1-b83d-db4d58db5568\"\n\n[[deps.Markdown]]\ndeps = [\"Base64\"]\nuuid = \"d6f4376e-aef5-505a-96c1-9c027394607a\"\n\n[[deps.MbedTLS_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"c8ffd9c3-330d-5841-b78e-0817d7145fa1\"\n\n[[deps.Mmap]]\nuuid = \"a63ad114-7e13-5084-954f-fe012c677804\"\n\n[[deps.MozillaCACerts_jll]]\nuuid = \"14a3606d-f60d-562e-9121-12d972cd8159\"\n\n[[deps.NetworkOptions]]\nuuid = \"ca575930-c2e3-43a9-ace4-1e988b2c1908\"\n\n[[deps.Parsers]]\ndeps = [\"Dates\", \"Test\"]\ngit-tree-sha1 = \"0139ba59ce9bc680e2925aec5b7db79065d60556\"\nuuid = \"69de0a69-1ddd-5017-9359-2bf0b02dc9f0\"\nversion = \"0.3.10\"\n\n[[deps.Pkg]]\ndeps = [\"Artifacts\", \"Dates\", \"Downloads\", \"LibGit2\", \"Libdl\", \"Logging\", \"Markdown\", \"Printf\", \"REPL\", \"Random\", \"SHA\", \"Serialization\", \"TOML\", \"Tar\", \"UUIDs\", \"p7zip_jll\"]\nuuid = \"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\"\n\n[[deps.Printf]]\ndeps = [\"Unicode\"]\nuuid = \"de0858da-6303-5e67-8744-51eddeeeb8d7\"\n\n[[deps.REPL]]\ndeps = [\"InteractiveUtils\", \"Markdown\", \"Sockets\", \"Unicode\"]\nuuid = \"3fa0cd96-eef1-5676-8a61-b3b8758bbffb\"\n\n[[deps.Random]]\ndeps = [\"SHA\", \"Serialization\"]\nuuid = \"9a3f8284-a2c9-5f02-9a11-845980a1fd5c\"\n\n[[deps.SHA]]\nuuid = \"ea8e919c-243c-51af-8825-aaa63cd721ce\"\n\n[[deps.Serialization]]\nuuid = \"9e88b42a-f829-5b0c-bbe9-9e923198166b\"\n\n[[deps.Sockets]]\nuuid = \"6462fe0b-24de-5631-8697-dd941f90decc\"\n\n[[deps.TOML]]\ndeps = [\"Dates\"]\nuuid = \"fa267f1f-6049-4f14-aa54-33bafae1ed76\"\n\n[[deps.Tar]]\ndeps = [\"ArgTools\", \"SHA\"]\nuuid = \"a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e\"\n\n[[deps.Test]]\ndeps = [\"InteractiveUtils\", \"Logging\", \"Random\", \"Serialization\"]\nuuid = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n\n[[deps.UUIDs]]\ndeps = [\"Random\", \"SHA\"]\nuuid = \"cf7118a7-6976-5b1a-9a39-7adc72f591a4\"\n\n[[deps.Unicode]]\nuuid = \"4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5\"\n\n[[deps.WackyOptions]]\npath = \"..\"\nuuid = \"c51a4d33-e9a4-4efb-a257-e0de888ecc28\"\nversion = \"1.0.0\"\n\n[[deps.Zlib_jll]]\ndeps = [\"Libdl\"]\nuuid = \"83775a58-1f1d-513f-b197-d71354ab007a\"\n\n[[deps.nghttp2_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"8e850ede-7688-5339-a07c-302acd2aaf8d\"\n\n[[deps.p7zip_jll]]\ndeps = [\"Artifacts\", \"Libdl\"]\nuuid = \"3f19e933-33d8-53b3-aaab-bd5110c3b7a0\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/docs/Project.toml",
    "content": "[deps]\nDocumenter = \"e30172f5-a6a5-5a46-863b-614d45cd2de4\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/docs/make.jl",
    "content": "using WackyOptions\nusing Documenter\n\nDocMeta.setdocmeta!(WackyOptions, :DocTestSetup, :(using WackyOptions); recursive=true)\n\nmakedocs(;\n    modules=[WackyOptions],\n    authors=\"tester\",\n    sitename=\"WackyOptions.jl\",\n    format=Documenter.HTML(;\n        canonical=\"http://example.com\",\n        edit_link=:commit,\n        assets=[\n            \"assets/static.txt\",\n        ],\n    ),\n    pages=[\n        \"Home\" => \"index.md\",\n    ],\n    bar=\"baz\",\n    foo=\"bar\",\n)\n\ndeploydocs(;\n    repo=\"x.com/tester/WackyOptions.jl\",\n    devbranch=\"foobar\",\n)\n"
  },
  {
    "path": "test/fixtures/WackyOptions/docs/src/assets/static.txt",
    "content": "DO NOT CHANGE THE CONTENTS OF THIS FILE!\n"
  },
  {
    "path": "test/fixtures/WackyOptions/docs/src/index.md",
    "content": "```@meta\nCurrentModule = WackyOptions\n```\n\n# WackyOptions\n\nDocumentation for [WackyOptions](https://x.com/tester/WackyOptions.jl).\n\n```@index\n```\n\n```@autodocs\nModules = [WackyOptions]\n```\n"
  },
  {
    "path": "test/fixtures/WackyOptions/src/WackyOptions.jl",
    "content": "module WackyOptions\n\n# Write your package code here.\n\nend\n"
  },
  {
    "path": "test/fixtures/WackyOptions/test/Project.toml",
    "content": "[deps]\nAqua = \"4c88cf16-eb10-579e-8560-4a9242c79595\"\nJET = \"c3a54625-cd67-489e-a8e7-0a5a0ff4e31b\"\nTest = \"8dfed614-e22c-5e08-85e1-65c5234f0b40\"\n"
  },
  {
    "path": "test/fixtures/WackyOptions/test/runtests.jl",
    "content": "using WackyOptions\nusing Test\nusing Aqua\nusing JET\n\n@testset \"WackyOptions.jl\" begin\n    @testset \"Code quality (Aqua.jl)\" begin\n        Aqua.test_all(WackyOptions; ambiguities = false, unbound_args = true)\n    end\n    @testset \"Code linting (JET.jl)\" begin\n        JET.test_package(WackyOptions; target_defined_modules = true)\n    end\n    # Write your tests here.\nend\n"
  },
  {
    "path": "test/fixtures/static.txt",
    "content": "DO NOT CHANGE THE CONTENTS OF THIS FILE!\n"
  },
  {
    "path": "test/git.jl",
    "content": "@info \"Running Git tests\"\n\n@testset \"Git repositories\" begin\n    @testset \"Does not create Git repo\" begin\n        t = tpl(; plugins=[!Git])\n        with_pkg(t) do pkg\n            pkg_dir = joinpath(t.dir, pkg)\n            @test !isdir(joinpath(pkg_dir, \".git\"))\n        end\n    end\n\n    @testset \"Creates Git repo\" begin\n        t = tpl(; plugins=[Git()])\n        with_pkg(t) do pkg\n            pkg_dir = joinpath(t.dir, pkg)\n            @test isdir(joinpath(pkg_dir, \".git\"))\n        end\n    end\n\n    @testset \"With HTTPS\" begin\n        t = tpl(; plugins=[Git(; ssh=false)])\n        with_pkg(t) do pkg\n            LibGit2.with(GitRepo(joinpath(t.dir, pkg))) do repo\n                remote = LibGit2.get(GitRemote, repo, \"origin\")\n                @test startswith(LibGit2.url(remote), \"https://\")\n            end\n        end\n    end\n\n    @testset \"With SSH\" begin\n        t = tpl(; plugins=[Git(; ssh=true)])\n        with_pkg(t) do pkg\n            LibGit2.with(GitRepo(joinpath(t.dir, pkg))) do repo\n                remote = LibGit2.get(GitRemote, repo, \"origin\")\n                @test startswith(LibGit2.url(remote), \"git@\")\n            end\n        end\n    end\n\n    @testset \"Without .jl suffix\" begin\n        t = tpl(; plugins=[Git(; jl=false)])\n        with_pkg(t) do pkg\n            LibGit2.with(GitRepo(joinpath(t.dir, pkg))) do repo\n                remote = LibGit2.get(GitRemote, repo, \"origin\")\n                @test !occursin(\".jl\", LibGit2.url(remote))\n            end\n        end\n    end\n\n    @testset \"With custom name/email\" begin\n        t = tpl(; plugins=[Git(; name=\"me\", email=\"a@b.c\")])\n        with_pkg(t) do pkg\n            LibGit2.with(GitRepo(joinpath(t.dir, pkg))) do repo\n                @test LibGit2.getconfig(repo, \"user.name\", \"\") == \"me\"\n                @test LibGit2.getconfig(repo, \"user.email\", \"\") == \"a@b.c\"\n            end\n        end\n    end\n\n    @testset \"Default branches\" begin\n        with_clean_gitconfig() do\n            @test Git().branch == PT.DEFAULT_DEFAULT_BRANCH\n            run(`git config init.defaultBranch foo`)\n            @test Git().branch == \"foo\"\n        end\n\n        t = tpl(; plugins=[Git(; branch=\"main\")])\n        with_pkg(t) do pkg\n            LibGit2.with(GitRepo(joinpath(t.dir, pkg))) do repo\n                @test LibGit2.branch(repo) == \"main\"\n            end\n        end\n    end\n\n    @testset \"Adds version to commit message\" begin\n        # We're careful to avoid a Pkg.update as it triggers Cassette#130.\n        t = tpl(; plugins=[Git(), !Tests])\n\n        patch = @patch PkgTemplates.version_of(t) = v\"1.2.3\"\n        apply(patch) do\n            with_pkg(t) do pkg\n                pkg_dir = joinpath(t.dir, pkg)\n                LibGit2.with(GitRepo(pkg_dir)) do repo\n                    commit = GitCommit(repo, \"HEAD\")\n                    @test occursin(\"PkgTemplates version: 1.2.3\", LibGit2.message(commit))\n                end\n            end\n        end\n    end\nend\n"
  },
  {
    "path": "test/interactive.jl",
    "content": "@info \"Running interactive tests\"\n\nusing PkgTemplates: @with_kw_noshow\n\nconst CR = \"\\r\"\nconst LF = \"\\n\"\nconst UP = \"\\eOA\"\nconst DOWN = \"\\eOB\"\nconst ALL = \"a\"\nconst NONE = \"n\"\nconst DONE = \"d\"\nconst SIGINT = \"\\x03\"\n\n# Because the plugin selection dialog prints directly to stdin in the same way\n# as we do here, and our input prints happen first, we're going to need to insert\n# the plugin selection prints ourselves, and then \"undo\" the extra ones at the end\n# by consuming whatever is left in stdin.\nconst NDEFAULTS = length(PT.default_plugins())\nconst SELECT_DEFAULTS = (CR * DOWN)^NDEFAULTS\n\nstruct FromString\n    s::String\nend\n\n@testset \"Interactive mode\" begin\n    @testset \"Input conversion\" begin\n        generic(T, x) = PT.convert_input(PT.Plugin, T, x)\n        @test generic(String, \"foo\") == \"foo\"\n        @test generic(Float64, \"1.23\") == 1.23\n        @test generic(Int, \"01\") == 1\n        @test generic(Bool, \"yes\") === true\n        @test generic(Bool, \"True\") === true\n        @test generic(Bool, \"No\") === false\n        @test generic(Bool, \"false\") === false\n        @test generic(Vector{Int}, \"1, 2, 3\") == [1, 2, 3]\n        @test generic(Vector{String}, \"a, b,c\") == [\"a\", \"b\", \"c\"]\n        @test generic(FromString, \"hello\") == FromString(\"hello\")\n        if VERSION < v\"1.1\"\n            @test_broken generic(Union{String, Nothing}, \"nothing\") === nothing\n        else\n            @test generic(Union{String, Nothing}, \"nothing\") === nothing\n        end\n\n        @test_throws ArgumentError generic(Int, \"hello\")\n        @test_throws ArgumentError generic(Float64, \"hello\")\n        @test_throws ArgumentError generic(Bool, \"hello\")\n    end\n\n    @testset \"input_tips\" begin\n        @test isempty(PT.input_tips(String))\n        @test PT.input_tips(Int) == [\"Int\"]\n        @test PT.input_tips(Bool) == [\"Bool\"]\n        @test PT.input_tips(Symbol) == [\"Symbol\"]\n        @test PT.input_tips(Vector{String}) == [\"comma-delimited\"]\n        @test PT.input_tips(Union{Vector{String}, Nothing}) ==\n            [\"comma-delimited\", \"'nothing' for nothing\"]\n        @test PT.input_tips(Union{String, Nothing}) == [\"'nothing' for nothing\"]\n        @test PT.input_tips(Union{Vector{Secret}, Nothing}) ==\n            [\"name only\", \"comma-delimited\", \"'nothing' for nothing\"]\n    end\n\n    @testset \"Interactive name/type pair collection\" begin\n        name = gensym()\n        @eval begin\n            PT.@plugin struct $name <: PT.Plugin\n                x::Int = 0\n                y::String = \"\"\n            end\n\n            @test PT.interactive_pairs($name) == [:x => Int, :y => String]\n            PT.customizable(::Type{$name}) = (:x => PT.NotCustomizable, :y => Float64, :z => Int)\n            @test PT.interactive_pairs($name) == [:y => Float64, :z => Int]\n        end\n    end\n\n    @testset \"Simulated inputs\" begin\n        @testset \"Default template\" begin\n            print(\n                stdin.buffer,\n                CR,        # Select user\n                DONE,      # Finish menu\n                USER, LF,  # Enter user\n            )\n            @test Template(; interactive=true) == Template(; user=USER)\n        end\n\n        @testset \"Custom options, accept defaults\" begin\n            print(\n                stdin.buffer,\n                ALL, DONE,        # Customize all fields\n                \"user\", LF,       # Enter user (don't assume we have default for this one).\n                LF,               # Enter authors\n                LF,               # Enter dir\n                CR,               # Enter host\n                CR,               # Enter julia\n                SELECT_DEFAULTS,  # Pre-select default plugins\n                DONE,             # Select no additional plugins\n                DONE^NDEFAULTS,   # Don't customize plugins\n            )\n            @test Template(; interactive=true) == Template(; user=\"user\", julia=v\"1.0.0\")\n            readavailable(stdin.buffer)\n        end\n\n        @testset \"Custom options, custom values\" begin\n            nversions = VERSION.minor + 1\n            print(\n                stdin.buffer,\n                ALL, DONE,           # Customize all fields\n                \"user\", LF,          # Enter user\n                \"a, b\", LF,          # Enter authors\n                \"~\", LF,             # Enter dir\n                DOWN^3, CR,          # Choose \"Other\" for host\n                \"x.com\", LF,         # Enter host\n                DOWN^nversions, CR,  # Choose \"Other\" for julia\n                \"0.7\", LF,           # Enter Julia version\n                SELECT_DEFAULTS,     # Pre-select default plugins\n                DONE,                # Select no additional plugins\n                DONE^NDEFAULTS,      # Don't customize plugins\n            )\n            @test Template(; interactive=true) == Template(;\n                user=\"user\",\n                authors=[\"a\", \"b\"],\n                dir=\"~\",\n                host=\"x.com\",\n                julia=v\"0.7\",\n            )\n            readavailable(stdin.buffer)\n        end\n\n        @testset \"Disabling default plugins\" begin\n            print(\n                stdin.buffer,\n                CR, DOWN^5, CR, DONE,    # Customize user and plugins\n                USER, LF,                # Enter user\n                SELECT_DEFAULTS,         # Pre-select default plugins\n                UP^3, CR, UP^2, CR, DONE,# Disable TagBot and Readme\n                DONE^(NDEFAULTS - 2),    # Don't customize plugins\n            )\n            @test Template(; interactive=true) == Template(;\n                user=USER,\n                plugins=[!Readme, !TagBot],\n            )\n            readavailable(stdin.buffer)\n        end\n\n        @testset \"Plugins\" begin\n            print(\n                stdin.buffer,\n                ALL, DONE,       # Customize all fields\n                \"true\", LF,      # Enable ARM64\n                \"no\", LF,        # Disable coverage\n                \"1.1,v1.2\", LF,  # Enter extra versions\n                \"x.txt\", LF,     # Enter file\n                \"Yes\", LF,       # Enable Linux\n                \"false\", LF,     # Disable OSX\n                \"TRUE\", LF,      # Enable Windows\n                \"YES\",  LF,      # Enable x64\n                \"NO\", LF,        # Disable x86\n            )\n            @test PT.interactive(TravisCI) == TravisCI(;\n                arm64=true,\n                coverage=false,\n                extra_versions=[\"1.1\", \"v1.2\"],\n                file=\"x.txt\",\n                linux=true,\n                osx=false,\n                windows=true,\n                x64=true,\n                x86=false,\n            )\n\n            print(\n                stdin.buffer,\n                DOWN^2, CR,        # Select GitLabCI\n                DOWN^2, CR,        # Customize edit_link\n                DOWN, CR, DONE,    # Customize index_md\n                \":commit\", LF,     # Enter edit_link\n                \"x.txt\", LF,       # Enter index file\n            )\n            @test PT.interactive(Documenter) == Documenter{GitLabCI}(; edit_link=:commit, index_md=\"x.txt\")\n\n            print(\n                stdin.buffer,\n                CR, DOWN, CR, DONE,  # Customize name and destination\n                \"COPYING\", LF,       # Enter destination\n                CR,                  # Choose MIT for name (it's at the top)\n            )\n            @test PT.interactive(License) == License(; destination=\"COPYING\", name=\"MIT\")\n        end\n\n        @testset \"Quotes\" begin\n            print(\n                stdin.buffer,\n                CR, DOWN^2, CR, DONE,  # Customize user and dir\n                \"\\\"me\\\"\", LF,          # Enter user with quotes\n                \"\\\"~\\\"\", LF,           # Enter home dir with quotes\n            )\n            result = Template(; interactive=true) == Template(; user=\"me\", dir=\"~\")\n            if get(ENV, \"CI\", \"false\") == \"true\"\n                @test_broken result\n            else\n                @test_broken result  # see https://github.com/JuliaCI/PkgTemplates.jl/issues/434\n            end\n\n            print(\n                stdin.buffer,\n                DOWN^2, CR, DONE,                        # Customize extra_versions\n                \"\\\"1.1.1\\\", \\\"^1.5\\\", \\\"nightly\\\"\", LF,  # Enter versions with quotes\n            )\n            @test PT.interactive(TravisCI) == TravisCI(;\n                extra_versions=[\"1.1.1\", \"^1.5\", \"nightly\"],\n            )\n        end\n\n        @testset \"Union{T, Nothing} weirdness\" begin\n            print(\n                stdin.buffer,\n                DOWN, CR, DONE,  # Customize changelog\n                \"hello\", LF,     # Enter changelog\n            )\n            @test PT.interactive(TagBot) == TagBot(; changelog=\"hello\")\n\n            print(\n                stdin.buffer,\n                DOWN, CR, DONE,  # Customize changelog\n                \"nothing\", LF,   # Set to null\n            )\n            @test PT.interactive(TagBot) == TagBot(; changelog=nothing)\n        end\n\n        @testset \"Only one field\" begin\n            print(\n                stdin.buffer,\n                DOWN, CR, DONE,  # Select \"None\" option\n            )\n            @test PT.interactive(Codecov) == Codecov()\n        end\n\n        @testset \"Missing user\" begin\n            print(\n                stdin.buffer,\n                DONE,            # Customize nothing\n                \"username\", LF,  # Enter user after it's prompted\n            )\n\n            patch = @patch PkgTemplates.default_user() = \"\"\n            apply(patch) do\n                @test Template(; interactive=true) == Template(; user=\"username\")\n            end\n        end\n\n        @testset \"Interrupts\" begin\n            print(\n                stdin.buffer,\n                SIGINT,  # Send keyboard interrupt\n            )\n            @test Template(; interactive=true) === nothing\n        end\n\n        println()\n    end\nend\n"
  },
  {
    "path": "test/plugin.jl",
    "content": "# Don't move this line from the top, please. {{X}} {{Y}} {{Z}}\n\n@info \"Running plugin tests\"\n\nusing Test: @test_deprecated\n\nstruct FileTest <: PT.FilePlugin\n    a::String\n    b::Bool\nend\n\nPT.gitignore(::FileTest) = [\"a\", \"aa\", \"aaa\"]\nPT.source(::FileTest) = @__FILE__\nPT.destination(::FileTest) = \"foo.txt\"\nPT.badges(::FileTest) = PT.Badge(\"{{X}}\", \"{{Y}}\", \"{{Z}}\")\nPT.view(::FileTest, ::Template, ::AbstractString) = Dict(\"X\" => 0, \"Y\" => 2)\nPT.user_view(::FileTest, ::Template, ::AbstractString) = Dict(\"X\" => 1, \"Z\" => 3)\n\n@testset \"Plugins\" begin\n    @testset \"FilePlugin\" begin\n        p = FileTest(\"foo\", true)\n        t = tpl(; plugins=[p])\n\n        # The X from user_view should override the X from view.\n        s = PT.render_plugin(p, t, \"\")\n        @test occursin(\"1 2 3\", first(split(s, \"\\n\")))\n\n        with_pkg(t) do pkg\n            pkg_dir = joinpath(t.dir, pkg)\n            badge = string(PT.Badge(\"1\", \"2\", \"3\"))\n            @test occursin(\"a\\naa\\naaa\", read(joinpath(pkg_dir, \".gitignore\"), String))\n            @test occursin(badge, read(joinpath(pkg_dir, \"README.md\"), String))\n            @test read(joinpath(pkg_dir, \"foo.txt\"), String) == s\n        end\n    end\n\n    @testset \"Tests Project.toml warning on Julia < 1.2\" begin\n        p = Tests(; project=true)\n        @test_logs (:warn, r\"The project option is set\") tpl(; julia=v\"1\", plugins=[p])\n        @test_logs (:warn, r\"The project option is set\") tpl(; julia=v\"1.1\", plugins=[p])\n        @test_logs tpl(; julia=v\"1.2\", plugins=[p])\n        @test_logs tpl(; julia=v\"1.3\", plugins=[p])\n    end\n\n    @testset \"CI versions\" begin\n        t = tpl(; julia=v\"1\")\n        @test PT.collect_versions(t, [\"1.0\", \"1.5\", \"nightly\"]) == [\"1.0\", \"1.5\", \"nightly\"]\n        t = tpl(; julia=v\"2\")\n        @test PT.collect_versions(t, [\"1.0\", \"1.5\", \"nightly\"]) == [\"2.0\", \"nightly\"]\n    end\n\n    @testset \"Equality\" begin\n        a = FileTest(\"foo\", true)\n        b = FileTest(\"foo\", true)\n        @test a == b\n        c = FileTest(\"foo\", false)\n        @test a != c\n    end\n\n    @testset \"Validations\" begin\n        t = tpl()\n        p = TravisCI(; file=\"/does/not/exist\")\n        @test_throws ArgumentError PT.validate(p, t)\n        p = Documenter(; assets=[\"/does/not/exist\"])\n        @test_throws ArgumentError PT.validate(p, t)\n        p = Documenter(; logo=Logo(; light=\"/does/not/exist\"))\n        @test_throws ArgumentError PT.validate(p, t)\n        p = Documenter{TravisCI}()\n        @test_throws ArgumentError PT.validate(p, t)\n    end\n\n    @testset \"Custom badge plugins\" begin\n        t = tpl(; plugins=[!Readme, BlueStyleBadge()])\n        with_pkg(t) do pkg\n            pkg_dir = joinpath(t.dir, pkg)\n            @test !isfile(joinpath(pkg_dir, \"README.md\"))\n        end\n        @testset \"$BadgeType\" for (BadgeType, text) in (\n            BlueStyleBadge => \"BlueStyle\",\n            ColPracBadge => \"ColPrac\",\n            PkgEvalBadge => \"PkgEval\",\n        )\n            @test BadgeType <: PT.BadgePlugin\n            t = tpl(; plugins=[BadgeType()])\n            @test PT.hasplugin(t, BadgeType)\n            with_pkg(t) do pkg\n                pkg_dir = joinpath(t.dir, pkg)\n                @test occursin(text, read(joinpath(pkg_dir, \"README.md\"), String))\n            end\n        end\n    end\n\n    # https://github.com/JuliaCI/PkgTemplates.jl/issues/275\n    @testset \"makedocs_kwargs sort bug\" begin\n        p = Documenter(; makedocs_kwargs=Dict(:strict => true, :checkdocs => :exports))\n        t = tpl(; plugins=[p])\n        # A failure looks like: `MethodError: no method matching isless(::Symbol, ::Bool)`\n        with_pkg(t) do pkg\n            pkg_dir = joinpath(t.dir, pkg)\n            @test isdir(joinpath(pkg_dir, \"docs\"))\n        end\n    end\n\n    @testset \"`pkg_name`\" begin\n        using PkgTemplates: pkg_name\n        @test pkg_name(\"foo/bar/Whee.jl\") == \"Whee\"\n        @test pkg_name(\"foo/bar/Whee\") == \"Whee\"\n        @test pkg_name(\"Whee\") == \"Whee\"\n        # Only the final suffix is removed---we don't correct for user error\n        @test pkg_name(\"Whee.jl.jl\") == \"Whee.jl\"\n    end\n\n    @testset \"License aliases\" begin\n        # Backward-compatibility: legacy license names should still work, but emit a depwarn.\n        apache = PT.default_file(\"licenses\", \"Apache-2.0\")\n        @assert isfile(apache)\n\n        p = @test_deprecated License(; name=\"ASL\")\n        @test PT.source(p) == apache\n\n        # SPDX identifiers should work without warnings.\n        @test_logs License(; name=\"Apache-2.0\")\n    end\nend\n"
  },
  {
    "path": "test/reference.jl",
    "content": "@info \"Running reference tests\"\n\nconst PROMPT = get(ENV, \"PT_INTERACTIVE\", \"false\") == \"true\" || !haskey(ENV, \"CI\")\nconst STATIC_TXT = joinpath(@__DIR__, \"fixtures\", \"static.txt\")\nconst STATIC_PNG = joinpath(@__DIR__, \"fixtures\", \"static.png\")\nconst STATIC_DOCUMENTER = [\n    PackageSpec(; name=\"DocStringExtensions\", version=v\"0.8.1\"),\n    PackageSpec(; name=\"Documenter\", version=v\"0.24.2\"),\n    PackageSpec(; name=\"JSON\", version=v\"0.21.0\"),\n    PackageSpec(; name=\"Parsers\", version=v\"0.3.10\"),\n]\n\nfunction test_reference(reference, comparison)\n    if !isfile(reference)\n        # If the reference file doesn't yet exist, create it but fail the test.\n        @info \"Creating new reference file $reference\"\n        copy_file(comparison, reference)\n        @test false\n        return\n    end\n\n    a = read(reference, String)\n    b = read(comparison, String)\n    if a == b\n        # If the files are equal, pass the test.\n        @test true\n        return\n    end\n\n    print_diff(a, b)\n    println(\"Reference and comparison files do not match (see above)\")\n    println(\"Reference: $reference\")\n    println(\"Comparison: $comparison\")\n    update = false\n    if haskey(ENV, \"JULIA_REFERENCETESTS_UPDATE\")\n        copy_file(comparison, reference)\n    elseif PROMPT\n        while true\n            println(\"Update reference file? [y/n]\")\n            answer = lowercase(strip(readline()))\n            if startswith(answer, \"y\") || startswith(answer, \"n\")\n                # If the user chooses to update the reference file,\n                # replace its contents with the comparison file.\n                startswith(answer, \"y\") && copy_file(comparison, reference)\n                break\n            end\n        end\n    end\n\n    # Fail the test, but keep the output short\n    # because we've already showed the diff.\n    @test :reference == :comparison\nend\n\nfunction copy_file(src::AbstractString, dest::AbstractString)\n    mkpath(dirname(dest))\n    cp(src, dest; force=true)\nend\n\nPT.user_view(::Citation, ::Template, ::AbstractString) = Dict(\"MONTH\" => 8, \"YEAR\" => 2019)\nPT.user_view(::License, ::Template, ::AbstractString) = Dict(\"YEAR\" => 2019)\n\nfunction pin_documenter(project_dir::AbstractString)\n    @suppress PT.with_project(project_dir) do\n        foreach(Pkg.add, STATIC_DOCUMENTER)\n    end\n    toml = joinpath(project_dir, \"Project.toml\")\n    project = TOML.parsefile(toml)\n    filter!(p -> p.first == \"Documenter\", project[\"deps\"])\n    PT.write_project(toml, project)\nend\n\nfunction test_all(pkg::AbstractString; kwargs...)\n    t = tpl(; kwargs...)\n\n    # Ensure that the same output is generated (with the exception of the generated directory)\n    # regardless of whether the user passes in Foo.jl or Foo\n    for pkg_name in [pkg, pkg * \".jl\"]\n        with_pkg(t, pkg_name) do pkg_name\n            pkg_dir = joinpath(t.dir, pkg_name)\n            PT.hasplugin(t, Documenter) && pin_documenter(joinpath(pkg_dir, \"docs\"))\n            foreach(readlines(`git -C $pkg_dir ls-files`)) do f\n                # Don't check test Manifest: versions of dependencies may vary\n                if !contains(f, joinpath(\"test\", \"Manifest.toml\"))\n                    reference = joinpath(@__DIR__, \"fixtures\", pkg, f)\n                    comparison = joinpath(pkg_dir, f)\n                    test_reference(reference, comparison)\n                end\n            end\n        end\n    end\nend\n\n@testset \"Reference tests\" begin\n    @testset \"Default package\" begin\n        test_all(\"Basic\"; authors=USER)\n    end\n\n    @testset \"All plugins\" begin\n        test_all(\"AllPlugins\"; authors=USER, plugins=[\n            AppVeyor(),\n            CirrusCI(),\n            Citation(),\n            CodeOwners(),\n            Codecov(),\n            CompatHelper(),\n            Coveralls(),\n            Dependabot(),\n            Develop(),\n            Documenter(),\n            DroneCI(),\n            Formatter(),\n            GitHubActions(),\n            GitLabCI(),\n            PkgBenchmark(),\n            PkgEvalBadge(),\n            RegisterAction(),\n            TravisCI(),\n            Runic{GitHubActions}(),\n        ])\n    end\n\n    @testset \"Documenter (TravisCI)\" begin\n        test_all(\"DocumenterTravis\"; authors=USER, plugins=[\n            Documenter{TravisCI}(), TravisCI(),\n        ])\n    end\n\n    @testset \"Documenter (GitHubActions)\" begin\n        test_all(\"DocumenterGitHubActions\"; authors=USER, plugins=[\n            Documenter{GitHubActions}(), GitHubActions(),\n        ])\n    end\n\n    @testset \"Documenter (GitLabCI)\" begin\n        test_all(\"DocumenterGitLabCI\"; authors=USER, plugins=[\n            Documenter{GitLabCI}(), GitLabCI(),\n        ])\n    end\n\n    @testset \"Wacky options\" begin\n        test_all(\"WackyOptions\"; authors=USER, julia=v\"1.2\", host=\"x.com\", plugins=[\n            AppVeyor(; x86=true, coverage=true, extra_versions=[v\"1.1\"]),\n            CirrusCI(; image=\"freebsd-123\", coverage=false, extra_versions=[\"1.3\"]),\n            Citation(; readme=true),\n            Codecov(; file=STATIC_TXT),\n            CodeOwners(; owners=[\"*\"=>[\"@user\"], \"README.md\"=>[\"@group\",\"user@example.com\"]]),\n            CompatHelper(; cron=\"0 0 */3 * *\"),\n            Coveralls(; file=STATIC_TXT),\n            Dependabot(),\n            Documenter{GitHubActions}(;\n                assets=[STATIC_TXT],\n                logo=Logo(; light=STATIC_PNG),\n                makedocs_kwargs=Dict(:foo => \"bar\", :bar => \"baz\"),\n                canonical_url=(_t, _pkg) -> \"http://example.com\",\n                devbranch=\"foobar\",\n                edit_link=:commit,\n            ),\n            DroneCI(; amd64=false, arm=true, arm64=true, extra_versions=[\"1.3\"]),\n            Formatter(; style=\"blue\"),\n            Git(; ignore=[\"a\", \"b\", \"c\"], manifest=true, branch=\"whackybranch\"),\n            GitHubActions(; x86=true, linux=false, coverage=false),\n            GitLabCI(; coverage=false, extra_versions=[v\"0.6\"]),\n            License(; name=\"ISC\"),\n            ProjectFile(; version=v\"1\"),\n            Readme(; inline_badges=true, badge_off=[Codecov]),\n            RegisterAction(; prompt=\"gimme version\"),\n            TagBot(;\n                trigger=\"OtherUser\",\n                token=Secret(\"MYTOKEN\"),\n                ssh=Secret(\"SSHKEY\"),\n                ssh_password=Secret(\"SSHPASS\"),\n                changelog=\"Line 1\\nLine 2\\n\\nLine 4\",\n                changelog_ignore=[\"foo\", \"bar\"],\n                gpg=Secret(\"GPGKEY\"),\n                gpg_password=Secret(\"GPGPASS\"),\n                registry=\"Foo/Bar\",\n                branches=false,\n                dispatch=true,\n                dispatch_delay=20,\n            ),\n            Tests(;\n                project=true,\n                aqua=true,\n                aqua_kwargs=(; ambiguities=false, unbound_args=true),\n                jet=true,\n            ),\n            TravisCI(;\n                coverage=false,\n                windows=false,\n                x86=true,\n                arm64=true,\n                extra_versions=[\"1.1\"],\n            ),\n        ])\n    end\nend\n"
  },
  {
    "path": "test/runtests.jl",
    "content": "using Base: UUID, contractuser\nusing Base.Filesystem: path_separator\n\nusing LibGit2: LibGit2, GitCommit, GitRemote, GitRepo\nusing Pkg: Pkg, PackageSpec, TOML\nusing Random: Random, randstring\nusing Test: @test, @testset, @test_broken, @test_logs, @test_throws\nusing UUIDs: uuid4\n\nusing DeepDiffs: deepdiff\nusing Mocking\nusing Suppressor: @suppress\n\nusing PkgTemplates\n\nMocking.activate()\n\nconst PT = PkgTemplates\nconst USER = \"tester\"\n\nRandom.seed!(1)\n\n# Creata a template that won't error because of a missing username.\ntpl(; kwargs...) = Template(; user=USER, kwargs...)\n\n# Generate a random package name.\npkgname() = titlecase(randstring('A':'Z', 16))\n\n# Create a randomly named package with a template, and delete it afterwards.\nfunction with_pkg(f::Function, t::Template, pkg::AbstractString=pkgname())\n    patch = @patch uuid4() = UUID(\"c51a4d33-e9a4-4efb-a257-e0de888ecc28\")\n    @suppress apply(patch) do\n        t(pkg)\n    end\n    try\n        f(pkg)\n    finally\n        # On 1.4, this sometimes won't work, but the error is that the package isn't installed.\n        # We're going to delete the package directory anyways, so just ignore any errors.\n        PT.version_of(pkg) === nothing || try @suppress Pkg.rm(pkg) catch; end\n        rm(joinpath(t.dir, pkg); recursive=true, force=true)\n    end\nend\n\nfunction print_diff(a, b)\n    old = Base.have_color\n    @eval Base have_color = true\n    try\n        println(deepdiff(a, b))\n    finally\n        @eval Base have_color = $old\n    end\nend\n\n# LibGit2 doesn't respect the $GIT_CONFIG environment variable,\n# but we need to use it to avoid modifying the user's environment.\nfunction with_clean_gitconfig(f)\n    function getconfig(key, default)\n        try\n            readchomp(`git config --get $key`)\n        catch\n            default\n        end\n    end\n    patch = @patch LibGit2.getconfig(key, default) = getconfig(key, default)\n    if !Sys.iswindows()\n        mktemp() do file, _io\n            withenv(\"GIT_CONFIG\" => file) do\n                apply(patch) do\n                    f()\n                end\n            end\n        end\n    else\n        # Windows gives a permission error if an external command like `git` tries\n        # to write to the file while Julia holds the `_io` handle.\n        # So we use the less-safe tempname approach.\n        file = touch(tempname())\n        withenv(\"GIT_CONFIG\" => file) do\n            apply(patch) do\n                f()\n            end\n        end\n        rm(file)\n    end\nend\n\n\nmktempdir() do dir\n    Pkg.activate(dir)\n    pushfirst!(DEPOT_PATH, dir)\n    try\n        @testset \"PkgTemplates.jl\" begin\n            include(\"template.jl\")\n            include(\"plugin.jl\")\n            include(\"show.jl\")\n\n            if VERSION < v\"1.8\"\n                # Interactive tests disabled on Julia Version >= 1.8 due to:\n                # https://github.com/JuliaCI/PkgTemplates.jl/issues/370\n                include(\"interactive.jl\")\n            else\n                @info \"Skipping interactive tests (requiring <v\\\"1.8\\\")\" VERSION\n            end\n\n            if PT.git_is_installed()\n                include(\"git.jl\")\n\n                # Quite a bit of output depends on the Julia version,\n                # and the test fixtures are made with Julia 1.10.0\n                # TODO: Keep this on the latest stable Julia version, and update\n                # the version used by the corresponding CI job at the same time.\n                REFERENCE_VERSION = v\"1.10.6\"\n                if VERSION == REFERENCE_VERSION\n                    # Ideally we'd use `with_clean_gitconfig`, but it's way too slow.\n                    branch = LibGit2.getconfig(\n                        \"init.defaultBranch\",\n                        PT.DEFAULT_DEFAULT_BRANCH,\n                    )\n                    if branch == PT.DEFAULT_DEFAULT_BRANCH\n                        include(\"reference.jl\")\n                    else\n                        \"Skipping reference tests, init.defaultBranch is set\"\n                    end\n                else\n                    @info \"Skipping reference tests (requiring $REFERENCE_VERSION)\" VERSION\n                end\n            else\n                @info \"Git is not installed, skipping Git and reference tests\"\n            end\n        end\n    finally\n        popfirst!(DEPOT_PATH)\n    end\nend\n"
  },
  {
    "path": "test/show.jl",
    "content": "@info \"Running show tests\"\n\nconst TEMPLATES_DIR = contractuser(PT.default_file())\nconst LICENSES_DIR = joinpath(TEMPLATES_DIR, \"licenses\")\n\nfunction test_show(expected::AbstractString, observed::AbstractString)\n    if expected == observed\n        @test true\n    else\n        print_diff(expected, observed)\n        @test :expected == :observed\n    end\nend\n\n@testset \"Show methods\" begin\n    @testset \"Plugins\" begin\n        expected = \"\"\"\n            Readme:\n              file: \"$(joinpath(TEMPLATES_DIR, \"README.md\"))\"\n              destination: \"README.md\"\n              inline_badges: false\n              badge_order: DataType[Documenter{GitHubActions}, Documenter{GitLabCI}, Documenter{TravisCI}, GitHubActions, GitLabCI, TravisCI, AppVeyor, DroneCI, CirrusCI, Codecov, Coveralls, BlueStyleBadge, ColPracBadge, PkgEvalBadge]\n              badge_off: DataType[]\n            \"\"\"\n        test_show(rstrip(expected), sprint(show, MIME(\"text/plain\"), Readme()))\n    end\n\n    @testset \"Template\" begin\n        expected = \"\"\"\n            Template:\n              authors: [\"$USER\"]\n              dir: \"$(contractuser(Pkg.devdir()))\"\n              host: \"github.com\"\n              julia: v\"1.10.10\"\n              user: \"$USER\"\n              plugins:\n                Dependabot:\n                  file: \"$(joinpath(TEMPLATES_DIR, \"github\", \"dependabot.yml\"))\"\n                Git:\n                  ignore: String[]\n                  name: nothing\n                  email: nothing\n                  branch: \"main\"\n                  ssh: false\n                  jl: true\n                  manifest: false\n                  gpgsign: false\n                GitHubActions:\n                  file: \"$(joinpath(TEMPLATES_DIR, \"github\", \"workflows\", \"CI.yml\"))\"\n                  destination: \\\"CI.yml\\\"\n                  linux: true\n                  osx: false\n                  windows: false\n                  x64: true\n                  x86: false\n                  coverage: true\n                  extra_versions: [\\\"1.10\\\", \\\"$(VERSION.major).$(VERSION.minor)\\\", \\\"pre\\\"]\n                License:\n                  path: \"$(joinpath(LICENSES_DIR, \"MIT\"))\"\n                  destination: \"LICENSE\"\n                ProjectFile:\n                  version: v\"1.0.0-DEV\"\n                Readme:\n                  file: \"$(joinpath(TEMPLATES_DIR, \"README.md\"))\"\n                  destination: \"README.md\"\n                  inline_badges: false\n                  badge_order: DataType[Documenter{GitHubActions}, Documenter{GitLabCI}, Documenter{TravisCI}, GitHubActions, GitLabCI, TravisCI, AppVeyor, DroneCI, CirrusCI, Codecov, Coveralls, BlueStyleBadge, ColPracBadge, PkgEvalBadge]\n                  badge_off: DataType[]\n                SrcDir:\n                  file: \"$(joinpath(TEMPLATES_DIR, \"src\", \"module.jlt\"))\"\n                TagBot:\n                  file: \"$(joinpath(TEMPLATES_DIR, \"github\", \"workflows\", \"TagBot.yml\"))\"\n                  destination: \"TagBot.yml\"\n                  trigger: \"JuliaTagBot\"\n                  token: Secret(\"GITHUB_TOKEN\")\n                  ssh: Secret(\"DOCUMENTER_KEY\")\n                  ssh_password: nothing\n                  changelog: nothing\n                  changelog_ignore: nothing\n                  gpg: nothing\n                  gpg_password: nothing\n                  registry: nothing\n                  branches: nothing\n                  dispatch: nothing\n                  dispatch_delay: nothing\n                Tests:\n                  file: \"$(joinpath(TEMPLATES_DIR, \"test\", \"runtests.jlt\"))\"\n                  project: false\n                  aqua: false\n                  aqua_kwargs: NamedTuple()\n                  jet: false\n            \"\"\"\n        # `with_clean_gitconfig` requires Git to be installed, but if Git is not installed,\n        # then we probably don't need to worry about any conflicting Git config files.\n        f = () -> test_show(\n            rstrip(expected),\n            sprint(show, MIME(\"text/plain\"), tpl(; authors=USER)),\n        )\n        if PT.git_is_installed()\n            with_clean_gitconfig() do\n                run(`git config user.name Tester`)\n                run(`git config user.email te@st.er`)\n                f()\n            end\n        else\n            f()\n        end\n    end\n\n    @testset \"show as serialization\" begin\n        t1 = tpl()\n        t2 = eval(Meta.parse(sprint(show, t1)))\n        @test t1 == t2\n\n        foreach((NoDeploy, GitHubActions)) do T\n            p1 = Documenter{T}()\n            p2 = eval(Meta.parse(sprint(show, p1)))\n            @test p1 == p2\n        end\n    end\nend\n"
  },
  {
    "path": "test/template.jl",
    "content": "@info \"Running template tests\"\n\n@testset \"Template\" begin\n    @testset \"Template constructor\" begin\n        @testset \"user\" begin\n            msg = sprint(showerror, PT.MissingUserException{TravisCI}())\n            @test startswith(msg, \"TravisCI: \")\n\n            patch = @patch PkgTemplates.getkw!(kwargs, k) = \"\"\n            apply(patch) do\n                @test_throws PT.MissingUserException Template()\n                @test isempty(Template(; plugins=[!Git, !GitHubActions]).user)\n            end\n\n            patch = @patch PkgTemplates.getkw!(kwargs, k) = \"username\"\n            apply(patch) do\n                @test Template().user == \"username\"\n            end\n        end\n\n        @testset \"authors\" begin\n            @test tpl(; authors=[\"a\"]).authors == [\"a\"]\n            @test tpl(; authors=\"a\").authors == [\"a\"]\n            @test tpl(; authors=\"a,b\").authors == [\"a\", \"b\"]\n            @test tpl(; authors=\"a, b\").authors == [\"a\", \"b\"]\n        end\n\n        @testset \"host\" begin\n            @test tpl(; host=\"https://foo.com\").host == \"foo.com\"\n        end\n\n        @testset \"dir\" begin\n            @test tpl(; dir=\"/foo/bar\").dir == joinpath(path_separator, \"foo\", \"bar\")\n            @test tpl(; dir=\"foo\").dir == abspath(\"foo\")\n            @test tpl(; dir=\"~/foo\").dir == abspath(expanduser(\"~/foo\"))\n        end\n\n        @testset \"plugins\" begin\n            function test_plugins(plugins, expected)\n                t = tpl(; plugins=plugins)\n                @test all(map(==, sort(t.plugins; by=string), sort(expected; by=string)))\n            end\n\n            defaults = PT.default_plugins()\n            test_plugins([], defaults)\n            test_plugins([Citation()], union(defaults, [Citation()]))\n\n            # Overriding a default plugin.\n            default_g = defaults[findfirst(p -> p isa Git, defaults)]\n            g = Git(; ssh=true)\n            test_plugins([g], union(setdiff(defaults, [default_g]), [g]))\n\n            # Disabling a default plugin.\n            test_plugins([!Git], setdiff(defaults, [default_g]))\n\n            # Duplicated default plugins are supported\n            g2 = Git(; branch=\"foo\")\n            test_plugins([g, g2], union(setdiff(defaults, [default_g]), [g, g2]))\n\n            # Duplicated non-default plugins are supported\n            c1 = Citation()\n            c2 = Citation()\n            test_plugins([c1, c2], vcat(defaults, [c1, c2]))\n        end\n\n        @testset \"Unsupported keywords warning\" begin\n            @test_logs tpl()\n            @test_logs (:warn, r\"Unrecognized keywords were supplied\") tpl(; x=1, y=2)\n        end\n    end\n\n    @testset \"Equality\" begin\n        a = tpl()\n        b = tpl()\n        @test a == b\n        c = tpl(julia=v\"0.3\")\n        @test a != c\n    end\n\n    @testset \"hasplugin\" begin\n        t = tpl(; plugins=[TravisCI(), Documenter{TravisCI}()])\n        @test PT.hasplugin(t, typeof(first(PT.default_plugins())))\n        @test PT.hasplugin(t, Documenter)\n        @test PT.hasplugin(t, PT.is_ci)\n        @test PT.hasplugin(t, _ -> true)\n        @test !PT.hasplugin(t, _ -> false)\n        @test !PT.hasplugin(t, Citation)\n    end\n\n    @testset \"validate\" begin\n        foreach((GitHubActions, TravisCI, GitLabCI)) do T\n            @test_throws ArgumentError tpl(; plugins=[!GitHubActions, Documenter{T}()])\n        end\n\n        patch = @patch LibGit2.getconfig(r, n) = \"\"\n        apply(patch) do\n            @test_throws ArgumentError tpl(; plugins=[Git()])\n        end\n    end\nend\n\n@testset \"Package generation errors\" begin\n    mktempdir() do dir\n        t = tpl(; dir=dirname(dir))\n        @test_throws ArgumentError t(basename(dir))\n    end\n\n    mktemp() do f, _io\n        t = tpl(; dir=dirname(f))\n        @test_throws ArgumentError t(basename(f))\n    end\n\n    t = tpl()\n    pkg = pkgname()\n\n    patch = @patch LibGit2.init(pkg_dir) = error()\n    apply(patch) do\n        @test_throws ErrorException @suppress t(pkg)\n    end\n    @test !isdir(joinpath(t.dir, pkg))\n\n    mktempdir() do dir\n        t = tpl(; dir=dir)\n        @test_throws ArgumentError t(\"42Foo.jl\")\n        @test_throws ArgumentError t(\"42Foo\")\n        @test_throws ArgumentError t(\"Foo Bar.jl\")\n        @test_throws ArgumentError t(\"Foo Bar\")\n    end\nend\n"
  }
]