Refactor licenses to many files (#323)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Mark D. Blackwell · committed by Albert Nigmatzianov · parent f58a8d6 · Browse files · 7 files·+1436 added−1315 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+1436 added−1315 removed
- other:+1436 added−1315 removed
Provenance
- Commit
0a4540b- Tree
84498dc- Author
Mark D. Blackwell <markdblackwell01@gmail.com>- Committer
Albert Nigmatzianov <albertnigma@gmail.com>- Parent
f58a8d6
7 files changed+1436 added−1315 removed
added:cobra/cmd/license_apache_2.go+238 added
1+// Copyright © 2015 Steve Francia <spf@spf13.com>.2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+// http://www.apache.org/licenses/LICENSE-2.07+//8+// Unless required by applicable law or agreed to in writing, software9+// distributed under the License is distributed on an "AS IS" BASIS,10+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11+// See the License for the specific language governing permissions and12+// limitations under the License.13+14+// Parts inspired by https://github.com/ryanuber/go-license15+16+package cmd17+18+func initApache2() {19+ Licenses["apache"] = License{20+ Name: "Apache 2.0",21+ PossibleMatches: []string{"apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"},22+ Header: `23+// Licensed under the Apache License, Version 2.0 (the "License");24+// you may not use this file except in compliance with the License.25+// You may obtain a copy of the License at26+//27+// http://www.apache.org/licenses/LICENSE-2.028+//29+// Unless required by applicable law or agreed to in writing, software30+// distributed under the License is distributed on an "AS IS" BASIS,31+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.32+// See the License for the specific language governing permissions and33+// limitations under the License.`,34+ Text: `35+ Apache License36+ Version 2.0, January 200437+ http://www.apache.org/licenses/38+39+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION40+41+ 1. Definitions.42+43+ "License" shall mean the terms and conditions for use, reproduction,44+ and distribution as defined by Sections 1 through 9 of this document.45+46+ "Licensor" shall mean the copyright owner or entity authorized by47+ the copyright owner that is granting the License.48+49+ "Legal Entity" shall mean the union of the acting entity and all50+ other entities that control, are controlled by, or are under common51+ control with that entity. For the purposes of this definition,52+ "control" means (i) the power, direct or indirect, to cause the53+ direction or management of such entity, whether by contract or54+ otherwise, or (ii) ownership of fifty percent (50%) or more of the55+ outstanding shares, or (iii) beneficial ownership of such entity.56+57+ "You" (or "Your") shall mean an individual or Legal Entity58+ exercising permissions granted by this License.59+60+ "Source" form shall mean the preferred form for making modifications,61+ including but not limited to software source code, documentation62+ source, and configuration files.63+64+ "Object" form shall mean any form resulting from mechanical65+ transformation or translation of a Source form, including but66+ not limited to compiled object code, generated documentation,67+ and conversions to other media types.68+69+ "Work" shall mean the work of authorship, whether in Source or70+ Object form, made available under the License, as indicated by a71+ copyright notice that is included in or attached to the work72+ (an example is provided in the Appendix below).73+74+ "Derivative Works" shall mean any work, whether in Source or Object75+ form, that is based on (or derived from) the Work and for which the76+ editorial revisions, annotations, elaborations, or other modifications77+ represent, as a whole, an original work of authorship. For the purposes78+ of this License, Derivative Works shall not include works that remain79+ separable from, or merely link (or bind by name) to the interfaces of,80+ the Work and Derivative Works thereof.81+82+ "Contribution" shall mean any work of authorship, including83+ the original version of the Work and any modifications or additions84+ to that Work or Derivative Works thereof, that is intentionally85+ submitted to Licensor for inclusion in the Work by the copyright owner86+ or by an individual or Legal Entity authorized to submit on behalf of87+ the copyright owner. For the purposes of this definition, "submitted"88+ means any form of electronic, verbal, or written communication sent89+ to the Licensor or its representatives, including but not limited to90+ communication on electronic mailing lists, source code control systems,91+ and issue tracking systems that are managed by, or on behalf of, the92+ Licensor for the purpose of discussing and improving the Work, but93+ excluding communication that is conspicuously marked or otherwise94+ designated in writing by the copyright owner as "Not a Contribution."95+96+ "Contributor" shall mean Licensor and any individual or Legal Entity97+ on behalf of whom a Contribution has been received by Licensor and98+ subsequently incorporated within the Work.99+100+ 2. Grant of Copyright License. Subject to the terms and conditions of101+ this License, each Contributor hereby grants to You a perpetual,102+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable103+ copyright license to reproduce, prepare Derivative Works of,104+ publicly display, publicly perform, sublicense, and distribute the105+ Work and such Derivative Works in Source or Object form.106+107+ 3. Grant of Patent License. Subject to the terms and conditions of108+ this License, each Contributor hereby grants to You a perpetual,109+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable110+ (except as stated in this section) patent license to make, have made,111+ use, offer to sell, sell, import, and otherwise transfer the Work,112+ where such license applies only to those patent claims licensable113+ by such Contributor that are necessarily infringed by their114+ Contribution(s) alone or by combination of their Contribution(s)115+ with the Work to which such Contribution(s) was submitted. If You116+ institute patent litigation against any entity (including a117+ cross-claim or counterclaim in a lawsuit) alleging that the Work118+ or a Contribution incorporated within the Work constitutes direct119+ or contributory patent infringement, then any patent licenses120+ granted to You under this License for that Work shall terminate121+ as of the date such litigation is filed.122+123+ 4. Redistribution. You may reproduce and distribute copies of the124+ Work or Derivative Works thereof in any medium, with or without125+ modifications, and in Source or Object form, provided that You126+ meet the following conditions:127+128+ (a) You must give any other recipients of the Work or129+ Derivative Works a copy of this License; and130+131+ (b) You must cause any modified files to carry prominent notices132+ stating that You changed the files; and133+134+ (c) You must retain, in the Source form of any Derivative Works135+ that You distribute, all copyright, patent, trademark, and136+ attribution notices from the Source form of the Work,137+ excluding those notices that do not pertain to any part of138+ the Derivative Works; and139+140+ (d) If the Work includes a "NOTICE" text file as part of its141+ distribution, then any Derivative Works that You distribute must142+ include a readable copy of the attribution notices contained143+ within such NOTICE file, excluding those notices that do not144+ pertain to any part of the Derivative Works, in at least one145+ of the following places: within a NOTICE text file distributed146+ as part of the Derivative Works; within the Source form or147+ documentation, if provided along with the Derivative Works; or,148+ within a display generated by the Derivative Works, if and149+ wherever such third-party notices normally appear. The contents150+ of the NOTICE file are for informational purposes only and151+ do not modify the License. You may add Your own attribution152+ notices within Derivative Works that You distribute, alongside153+ or as an addendum to the NOTICE text from the Work, provided154+ that such additional attribution notices cannot be construed155+ as modifying the License.156+157+ You may add Your own copyright statement to Your modifications and158+ may provide additional or different license terms and conditions159+ for use, reproduction, or distribution of Your modifications, or160+ for any such Derivative Works as a whole, provided Your use,161+ reproduction, and distribution of the Work otherwise complies with162+ the conditions stated in this License.163+164+ 5. Submission of Contributions. Unless You explicitly state otherwise,165+ any Contribution intentionally submitted for inclusion in the Work166+ by You to the Licensor shall be under the terms and conditions of167+ this License, without any additional terms or conditions.168+ Notwithstanding the above, nothing herein shall supersede or modify169+ the terms of any separate license agreement you may have executed170+ with Licensor regarding such Contributions.171+172+ 6. Trademarks. This License does not grant permission to use the trade173+ names, trademarks, service marks, or product names of the Licensor,174+ except as required for reasonable and customary use in describing the175+ origin of the Work and reproducing the content of the NOTICE file.176+177+ 7. Disclaimer of Warranty. Unless required by applicable law or178+ agreed to in writing, Licensor provides the Work (and each179+ Contributor provides its Contributions) on an "AS IS" BASIS,180+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or181+ implied, including, without limitation, any warranties or conditions182+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A183+ PARTICULAR PURPOSE. You are solely responsible for determining the184+ appropriateness of using or redistributing the Work and assume any185+ risks associated with Your exercise of permissions under this License.186+187+ 8. Limitation of Liability. In no event and under no legal theory,188+ whether in tort (including negligence), contract, or otherwise,189+ unless required by applicable law (such as deliberate and grossly190+ negligent acts) or agreed to in writing, shall any Contributor be191+ liable to You for damages, including any direct, indirect, special,192+ incidental, or consequential damages of any character arising as a193+ result of this License or out of the use or inability to use the194+ Work (including but not limited to damages for loss of goodwill,195+ work stoppage, computer failure or malfunction, or any and all196+ other commercial damages or losses), even if such Contributor197+ has been advised of the possibility of such damages.198+199+ 9. Accepting Warranty or Additional Liability. While redistributing200+ the Work or Derivative Works thereof, You may choose to offer,201+ and charge a fee for, acceptance of support, warranty, indemnity,202+ or other liability obligations and/or rights consistent with this203+ License. However, in accepting such obligations, You may act only204+ on Your own behalf and on Your sole responsibility, not on behalf205+ of any other Contributor, and only if You agree to indemnify,206+ defend, and hold each Contributor harmless for any liability207+ incurred by, or claims asserted against, such Contributor by reason208+ of your accepting any such warranty or additional liability.209+210+ END OF TERMS AND CONDITIONS211+212+ APPENDIX: How to apply the Apache License to your work.213+214+ To apply the Apache License to your work, attach the following215+ boilerplate notice, with the fields enclosed by brackets "[]"216+ replaced with your own identifying information. (Don't include217+ the brackets!) The text should be enclosed in the appropriate218+ comment syntax for the file format. We also recommend that a219+ file or class name and description of purpose be included on the220+ same "printed page" as the copyright notice for easier221+ identification within third-party archives.222+223+ Copyright [yyyy] [name of copyright owner]224+225+ Licensed under the Apache License, Version 2.0 (the "License");226+ you may not use this file except in compliance with the License.227+ You may obtain a copy of the License at228+229+ http://www.apache.org/licenses/LICENSE-2.0230+231+ Unless required by applicable law or agreed to in writing, software232+ distributed under the License is distributed on an "AS IS" BASIS,233+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.234+ See the License for the specific language governing permissions and235+ limitations under the License.236+`,237+ }238+}added:cobra/cmd/license_bsd_clause_2.go+71 added
1+// Copyright © 2015 Steve Francia <spf@spf13.com>.2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+// http://www.apache.org/licenses/LICENSE-2.07+//8+// Unless required by applicable law or agreed to in writing, software9+// distributed under the License is distributed on an "AS IS" BASIS,10+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11+// See the License for the specific language governing permissions and12+// limitations under the License.13+14+// Parts inspired by https://github.com/ryanuber/go-license15+16+package cmd17+18+func initBsdClause2() {19+ Licenses["freebsd"] = License{20+ Name: "Simplified BSD License",21+ PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2 clause bsd"},22+ Header: `23+All rights reserved.24+25+Redistribution and use in source and binary forms, with or without26+modification, are permitted provided that the following conditions are met:27+28+1. Redistributions of source code must retain the above copyright notice,29+ this list of conditions and the following disclaimer.30+31+2. Redistributions in binary form must reproduce the above copyright notice,32+ this list of conditions and the following disclaimer in the documentation33+ and/or other materials provided with the distribution.34+35+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"36+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE37+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE38+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE39+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR40+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF41+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS42+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN43+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)44+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE45+POSSIBILITY OF SUCH DAMAGE.`,46+ Text: `{{ .copyright }}47+All rights reserved.48+49+Redistribution and use in source and binary forms, with or without50+modification, are permitted provided that the following conditions are met:51+52+1. Redistributions of source code must retain the above copyright notice,53+ this list of conditions and the following disclaimer.54+55+2. Redistributions in binary form must reproduce the above copyright notice,56+ this list of conditions and the following disclaimer in the documentation57+ and/or other materials provided with the distribution.58+59+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"60+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE61+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE62+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE63+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL64+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR65+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER66+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,67+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE68+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.69+`,70+ }71+}added:cobra/cmd/license_bsd_clause_3.go+79 added
1+// Copyright © 2015 Steve Francia <spf@spf13.com>.2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+// http://www.apache.org/licenses/LICENSE-2.07+//8+// Unless required by applicable law or agreed to in writing, software9+// distributed under the License is distributed on an "AS IS" BASIS,10+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11+// See the License for the specific language governing permissions and12+// limitations under the License.13+14+// Parts inspired by https://github.com/ryanuber/go-license15+16+package cmd17+18+func initBsdClause3() {19+ Licenses["bsd"] = License{20+ Name: "NewBSD",21+ PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd"},22+ Header: `23+All rights reserved.24+25+Redistribution and use in source and binary forms, with or without26+modification, are permitted provided that the following conditions are met:27+28+1. Redistributions of source code must retain the above copyright notice,29+ this list of conditions and the following disclaimer.30+31+2. Redistributions in binary form must reproduce the above copyright notice,32+ this list of conditions and the following disclaimer in the documentation33+ and/or other materials provided with the distribution.34+35+3. Neither the name of the copyright holder nor the names of its contributors36+ may be used to endorse or promote products derived from this software37+ without specific prior written permission.38+39+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"40+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE41+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE42+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE43+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR44+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF45+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS46+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN47+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)48+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE49+POSSIBILITY OF SUCH DAMAGE.`,50+ Text: `{{ .copyright }}51+All rights reserved.52+53+Redistribution and use in source and binary forms, with or without54+modification, are permitted provided that the following conditions are met:55+56+1. Redistributions of source code must retain the above copyright notice,57+ this list of conditions and the following disclaimer.58+59+2. Redistributions in binary form must reproduce the above copyright notice,60+ this list of conditions and the following disclaimer in the documentation61+ and/or other materials provided with the distribution.62+63+3. Neither the name of the copyright holder nor the names of its contributors64+ may be used to endorse or promote products derived from this software65+ without specific prior written permission.66+67+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"68+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE69+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE70+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE71+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL72+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR73+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER74+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,75+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE76+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.77+`,78+ }79+}added:cobra/cmd/license_gpl_2.go+318 added
1+// Copyright © 2015 Steve Francia <spf@spf13.com>.2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+// http://www.apache.org/licenses/LICENSE-2.07+//8+// Unless required by applicable law or agreed to in writing, software9+// distributed under the License is distributed on an "AS IS" BASIS,10+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11+// See the License for the specific language governing permissions and12+// limitations under the License.13+14+// Parts inspired by https://github.com/ryanuber/go-license15+16+package cmd17+18+func initGpl2() {19+ Licenses["gpl2"] = License{20+ Name: "GNU General Public License 2.0",21+ PossibleMatches: []string{"gpl2", "gnu gpl2"},22+ Header: `{{ .copyright }}23+24+ {{ .appName }} is free software; you can redistribute it and/or25+ modify it under the terms of the GNU General Public License26+ as published by the Free Software Foundation; either version 227+ of the License, or (at your option) any later version.28+29+ {{ .appName }} is distributed in the hope that it will be useful,30+ but WITHOUT ANY WARRANTY; without even the implied warranty of31+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the32+ GNU General Public License for more details.33+34+ You should have received a copy of the GNU Lesser General Public License35+ along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,36+ Text: ` GNU GENERAL PUBLIC LICENSE37+ Version 2, June 199138+39+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,40+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA41+ Everyone is permitted to copy and distribute verbatim copies42+ of this license document, but changing it is not allowed.43+44+ Preamble45+46+ The licenses for most software are designed to take away your47+freedom to share and change it. By contrast, the GNU General Public48+License is intended to guarantee your freedom to share and change free49+software--to make sure the software is free for all its users. This50+General Public License applies to most of the Free Software51+Foundation's software and to any other program whose authors commit to52+using it. (Some other Free Software Foundation software is covered by53+the GNU Lesser General Public License instead.) You can apply it to54+your programs, too.55+56+ When we speak of free software, we are referring to freedom, not57+price. Our General Public Licenses are designed to make sure that you58+have the freedom to distribute copies of free software (and charge for59+this service if you wish), that you receive source code or can get it60+if you want it, that you can change the software or use pieces of it61+in new free programs; and that you know you can do these things.62+63+ To protect your rights, we need to make restrictions that forbid64+anyone to deny you these rights or to ask you to surrender the rights.65+These restrictions translate to certain responsibilities for you if you66+distribute copies of the software, or if you modify it.67+68+ For example, if you distribute copies of such a program, whether69+gratis or for a fee, you must give the recipients all the rights that70+you have. You must make sure that they, too, receive or can get the71+source code. And you must show them these terms so they know their72+rights.73+74+ We protect your rights with two steps: (1) copyright the software, and75+(2) offer you this license which gives you legal permission to copy,76+distribute and/or modify the software.77+78+ Also, for each author's protection and ours, we want to make certain79+that everyone understands that there is no warranty for this free80+software. If the software is modified by someone else and passed on, we81+want its recipients to know that what they have is not the original, so82+that any problems introduced by others will not reflect on the original83+authors' reputations.84+85+ Finally, any free program is threatened constantly by software86+patents. We wish to avoid the danger that redistributors of a free87+program will individually obtain patent licenses, in effect making the88+program proprietary. To prevent this, we have made it clear that any89+patent must be licensed for everyone's free use or not licensed at all.90+91+ The precise terms and conditions for copying, distribution and92+modification follow.93+94+ GNU GENERAL PUBLIC LICENSE95+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION96+97+ 0. This License applies to any program or other work which contains98+a notice placed by the copyright holder saying it may be distributed99+under the terms of this General Public License. The "Program", below,100+refers to any such program or work, and a "work based on the Program"101+means either the Program or any derivative work under copyright law:102+that is to say, a work containing the Program or a portion of it,103+either verbatim or with modifications and/or translated into another104+language. (Hereinafter, translation is included without limitation in105+the term "modification".) Each licensee is addressed as "you".106+107+Activities other than copying, distribution and modification are not108+covered by this License; they are outside its scope. The act of109+running the Program is not restricted, and the output from the Program110+is covered only if its contents constitute a work based on the111+Program (independent of having been made by running the Program).112+Whether that is true depends on what the Program does.113+114+ 1. You may copy and distribute verbatim copies of the Program's115+source code as you receive it, in any medium, provided that you116+conspicuously and appropriately publish on each copy an appropriate117+copyright notice and disclaimer of warranty; keep intact all the118+notices that refer to this License and to the absence of any warranty;119+and give any other recipients of the Program a copy of this License120+along with the Program.121+122+You may charge a fee for the physical act of transferring a copy, and123+you may at your option offer warranty protection in exchange for a fee.124+125+ 2. You may modify your copy or copies of the Program or any portion126+of it, thus forming a work based on the Program, and copy and127+distribute such modifications or work under the terms of Section 1128+above, provided that you also meet all of these conditions:129+130+ a) You must cause the modified files to carry prominent notices131+ stating that you changed the files and the date of any change.132+133+ b) You must cause any work that you distribute or publish, that in134+ whole or in part contains or is derived from the Program or any135+ part thereof, to be licensed as a whole at no charge to all third136+ parties under the terms of this License.137+138+ c) If the modified program normally reads commands interactively139+ when run, you must cause it, when started running for such140+ interactive use in the most ordinary way, to print or display an141+ announcement including an appropriate copyright notice and a142+ notice that there is no warranty (or else, saying that you provide143+ a warranty) and that users may redistribute the program under144+ these conditions, and telling the user how to view a copy of this145+ License. (Exception: if the Program itself is interactive but146+ does not normally print such an announcement, your work based on147+ the Program is not required to print an announcement.)148+149+These requirements apply to the modified work as a whole. If150+identifiable sections of that work are not derived from the Program,151+and can be reasonably considered independent and separate works in152+themselves, then this License, and its terms, do not apply to those153+sections when you distribute them as separate works. But when you154+distribute the same sections as part of a whole which is a work based155+on the Program, the distribution of the whole must be on the terms of156+this License, whose permissions for other licensees extend to the157+entire whole, and thus to each and every part regardless of who wrote it.158+159+Thus, it is not the intent of this section to claim rights or contest160+your rights to work written entirely by you; rather, the intent is to161+exercise the right to control the distribution of derivative or162+collective works based on the Program.163+164+In addition, mere aggregation of another work not based on the Program165+with the Program (or with a work based on the Program) on a volume of166+a storage or distribution medium does not bring the other work under167+the scope of this License.168+169+ 3. You may copy and distribute the Program (or a work based on it,170+under Section 2) in object code or executable form under the terms of171+Sections 1 and 2 above provided that you also do one of the following:172+173+ a) Accompany it with the complete corresponding machine-readable174+ source code, which must be distributed under the terms of Sections175+ 1 and 2 above on a medium customarily used for software interchange; or,176+177+ b) Accompany it with a written offer, valid for at least three178+ years, to give any third party, for a charge no more than your179+ cost of physically performing source distribution, a complete180+ machine-readable copy of the corresponding source code, to be181+ distributed under the terms of Sections 1 and 2 above on a medium182+ customarily used for software interchange; or,183+184+ c) Accompany it with the information you received as to the offer185+ to distribute corresponding source code. (This alternative is186+ allowed only for noncommercial distribution and only if you187+ received the program in object code or executable form with such188+ an offer, in accord with Subsection b above.)189+190+The source code for a work means the preferred form of the work for191+making modifications to it. For an executable work, complete source192+code means all the source code for all modules it contains, plus any193+associated interface definition files, plus the scripts used to194+control compilation and installation of the executable. However, as a195+special exception, the source code distributed need not include196+anything that is normally distributed (in either source or binary197+form) with the major components (compiler, kernel, and so on) of the198+operating system on which the executable runs, unless that component199+itself accompanies the executable.200+201+If distribution of executable or object code is made by offering202+access to copy from a designated place, then offering equivalent203+access to copy the source code from the same place counts as204+distribution of the source code, even though third parties are not205+compelled to copy the source along with the object code.206+207+ 4. You may not copy, modify, sublicense, or distribute the Program208+except as expressly provided under this License. Any attempt209+otherwise to copy, modify, sublicense or distribute the Program is210+void, and will automatically terminate your rights under this License.211+However, parties who have received copies, or rights, from you under212+this License will not have their licenses terminated so long as such213+parties remain in full compliance.214+215+ 5. You are not required to accept this License, since you have not216+signed it. However, nothing else grants you permission to modify or217+distribute the Program or its derivative works. These actions are218+prohibited by law if you do not accept this License. Therefore, by219+modifying or distributing the Program (or any work based on the220+Program), you indicate your acceptance of this License to do so, and221+all its terms and conditions for copying, distributing or modifying222+the Program or works based on it.223+224+ 6. Each time you redistribute the Program (or any work based on the225+Program), the recipient automatically receives a license from the226+original licensor to copy, distribute or modify the Program subject to227+these terms and conditions. You may not impose any further228+restrictions on the recipients' exercise of the rights granted herein.229+You are not responsible for enforcing compliance by third parties to230+this License.231+232+ 7. If, as a consequence of a court judgment or allegation of patent233+infringement or for any other reason (not limited to patent issues),234+conditions are imposed on you (whether by court order, agreement or235+otherwise) that contradict the conditions of this License, they do not236+excuse you from the conditions of this License. If you cannot237+distribute so as to satisfy simultaneously your obligations under this238+License and any other pertinent obligations, then as a consequence you239+may not distribute the Program at all. For example, if a patent240+license would not permit royalty-free redistribution of the Program by241+all those who receive copies directly or indirectly through you, then242+the only way you could satisfy both it and this License would be to243+refrain entirely from distribution of the Program.244+245+If any portion of this section is held invalid or unenforceable under246+any particular circumstance, the balance of the section is intended to247+apply and the section as a whole is intended to apply in other248+circumstances.249+250+It is not the purpose of this section to induce you to infringe any251+patents or other property right claims or to contest validity of any252+such claims; this section has the sole purpose of protecting the253+integrity of the free software distribution system, which is254+implemented by public license practices. Many people have made255+generous contributions to the wide range of software distributed256+through that system in reliance on consistent application of that257+system; it is up to the author/donor to decide if he or she is willing258+to distribute software through any other system and a licensee cannot259+impose that choice.260+261+This section is intended to make thoroughly clear what is believed to262+be a consequence of the rest of this License.263+264+ 8. If the distribution and/or use of the Program is restricted in265+certain countries either by patents or by copyrighted interfaces, the266+original copyright holder who places the Program under this License267+may add an explicit geographical distribution limitation excluding268+those countries, so that distribution is permitted only in or among269+countries not thus excluded. In such case, this License incorporates270+the limitation as if written in the body of this License.271+272+ 9. The Free Software Foundation may publish revised and/or new versions273+of the General Public License from time to time. Such new versions will274+be similar in spirit to the present version, but may differ in detail to275+address new problems or concerns.276+277+Each version is given a distinguishing version number. If the Program278+specifies a version number of this License which applies to it and "any279+later version", you have the option of following the terms and conditions280+either of that version or of any later version published by the Free281+Software Foundation. If the Program does not specify a version number of282+this License, you may choose any version ever published by the Free Software283+Foundation.284+285+ 10. If you wish to incorporate parts of the Program into other free286+programs whose distribution conditions are different, write to the author287+to ask for permission. For software which is copyrighted by the Free288+Software Foundation, write to the Free Software Foundation; we sometimes289+make exceptions for this. Our decision will be guided by the two goals290+of preserving the free status of all derivatives of our free software and291+of promoting the sharing and reuse of software generally.292+293+ NO WARRANTY294+295+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY296+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN297+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES298+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED299+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF300+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS301+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE302+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,303+REPAIR OR CORRECTION.304+305+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING306+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR307+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,308+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING309+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED310+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY311+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER312+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE313+POSSIBILITY OF SUCH DAMAGES.314+315+ END OF TERMS AND CONDITIONS316+`,317+ }318+}added:cobra/cmd/license_gpl_3.go+661 added
1+// Copyright © 2015 Steve Francia <spf@spf13.com>.2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+// http://www.apache.org/licenses/LICENSE-2.07+//8+// Unless required by applicable law or agreed to in writing, software9+// distributed under the License is distributed on an "AS IS" BASIS,10+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11+// See the License for the specific language governing permissions and12+// limitations under the License.13+14+// Parts inspired by https://github.com/ryanuber/go-license15+16+package cmd17+18+func initGpl3() {19+ Licenses["gpl3"] = License{20+ Name: "GNU General Public License 3.0",21+ PossibleMatches: []string{"gpl3", "gpl", "gnu gpl3", "gnu gpl"},22+ Header: `23+This file is part of {{ .appName }}.24+25+{{ .appName }} is free software: you can redistribute it and/or modify26+it under the terms of the GNU Lesser General Public License as published by27+the Free Software Foundation, either version 3 of the License, or28+(at your option) any later version.29+30+{{ .appName }} is distributed in the hope that it will be useful,31+but WITHOUT ANY WARRANTY; without even the implied warranty of32+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the33+GNU Lesser General Public License for more details.34+35+You should have received a copy of the GNU Lesser General Public License36+along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.37+ `,38+ Text: ` GNU GENERAL PUBLIC LICENSE39+ Version 3, 29 June 200740+41+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>42+ Everyone is permitted to copy and distribute verbatim copies43+ of this license document, but changing it is not allowed.44+45+ Preamble46+47+ The GNU General Public License is a free, copyleft license for48+software and other kinds of works.49+50+ The licenses for most software and other practical works are designed51+to take away your freedom to share and change the works. By contrast,52+the GNU General Public License is intended to guarantee your freedom to53+share and change all versions of a program--to make sure it remains free54+software for all its users. We, the Free Software Foundation, use the55+GNU General Public License for most of our software; it applies also to56+any other work released this way by its authors. You can apply it to57+your programs, too.58+59+ When we speak of free software, we are referring to freedom, not60+price. Our General Public Licenses are designed to make sure that you61+have the freedom to distribute copies of free software (and charge for62+them if you wish), that you receive source code or can get it if you63+want it, that you can change the software or use pieces of it in new64+free programs, and that you know you can do these things.65+66+ To protect your rights, we need to prevent others from denying you67+these rights or asking you to surrender the rights. Therefore, you have68+certain responsibilities if you distribute copies of the software, or if69+you modify it: responsibilities to respect the freedom of others.70+71+ For example, if you distribute copies of such a program, whether72+gratis or for a fee, you must pass on to the recipients the same73+freedoms that you received. You must make sure that they, too, receive74+or can get the source code. And you must show them these terms so they75+know their rights.76+77+ Developers that use the GNU GPL protect your rights with two steps:78+(1) assert copyright on the software, and (2) offer you this License79+giving you legal permission to copy, distribute and/or modify it.80+81+ For the developers' and authors' protection, the GPL clearly explains82+that there is no warranty for this free software. For both users' and83+authors' sake, the GPL requires that modified versions be marked as84+changed, so that their problems will not be attributed erroneously to85+authors of previous versions.86+87+ Some devices are designed to deny users access to install or run88+modified versions of the software inside them, although the manufacturer89+can do so. This is fundamentally incompatible with the aim of90+protecting users' freedom to change the software. The systematic91+pattern of such abuse occurs in the area of products for individuals to92+use, which is precisely where it is most unacceptable. Therefore, we93+have designed this version of the GPL to prohibit the practice for those94+products. If such problems arise substantially in other domains, we95+stand ready to extend this provision to those domains in future versions96+of the GPL, as needed to protect the freedom of users.97+98+ Finally, every program is threatened constantly by software patents.99+States should not allow patents to restrict development and use of100+software on general-purpose computers, but in those that do, we wish to101+avoid the special danger that patents applied to a free program could102+make it effectively proprietary. To prevent this, the GPL assures that103+patents cannot be used to render the program non-free.104+105+ The precise terms and conditions for copying, distribution and106+modification follow.107+108+ TERMS AND CONDITIONS109+110+ 0. Definitions.111+112+ "This License" refers to version 3 of the GNU General Public License.113+114+ "Copyright" also means copyright-like laws that apply to other kinds of115+works, such as semiconductor masks.116+117+ "The Program" refers to any copyrightable work licensed under this118+License. Each licensee is addressed as "you". "Licensees" and119+"recipients" may be individuals or organizations.120+121+ To "modify" a work means to copy from or adapt all or part of the work122+in a fashion requiring copyright permission, other than the making of an123+exact copy. The resulting work is called a "modified version" of the124+earlier work or a work "based on" the earlier work.125+126+ A "covered work" means either the unmodified Program or a work based127+on the Program.128+129+ To "propagate" a work means to do anything with it that, without130+permission, would make you directly or secondarily liable for131+infringement under applicable copyright law, except executing it on a132+computer or modifying a private copy. Propagation includes copying,133+distribution (with or without modification), making available to the134+public, and in some countries other activities as well.135+136+ To "convey" a work means any kind of propagation that enables other137+parties to make or receive copies. Mere interaction with a user through138+a computer network, with no transfer of a copy, is not conveying.139+140+ An interactive user interface displays "Appropriate Legal Notices"141+to the extent that it includes a convenient and prominently visible142+feature that (1) displays an appropriate copyright notice, and (2)143+tells the user that there is no warranty for the work (except to the144+extent that warranties are provided), that licensees may convey the145+work under this License, and how to view a copy of this License. If146+the interface presents a list of user commands or options, such as a147+menu, a prominent item in the list meets this criterion.148+149+ 1. Source Code.150+151+ The "source code" for a work means the preferred form of the work152+for making modifications to it. "Object code" means any non-source153+form of a work.154+155+ A "Standard Interface" means an interface that either is an official156+standard defined by a recognized standards body, or, in the case of157+interfaces specified for a particular programming language, one that158+is widely used among developers working in that language.159+160+ The "System Libraries" of an executable work include anything, other161+than the work as a whole, that (a) is included in the normal form of162+packaging a Major Component, but which is not part of that Major163+Component, and (b) serves only to enable use of the work with that164+Major Component, or to implement a Standard Interface for which an165+implementation is available to the public in source code form. A166+"Major Component", in this context, means a major essential component167+(kernel, window system, and so on) of the specific operating system168+(if any) on which the executable work runs, or a compiler used to169+produce the work, or an object code interpreter used to run it.170+171+ The "Corresponding Source" for a work in object code form means all172+the source code needed to generate, install, and (for an executable173+work) run the object code and to modify the work, including scripts to174+control those activities. However, it does not include the work's175+System Libraries, or general-purpose tools or generally available free176+programs which are used unmodified in performing those activities but177+which are not part of the work. For example, Corresponding Source178+includes interface definition files associated with source files for179+the work, and the source code for shared libraries and dynamically180+linked subprograms that the work is specifically designed to require,181+such as by intimate data communication or control flow between those182+subprograms and other parts of the work.183+184+ The Corresponding Source need not include anything that users185+can regenerate automatically from other parts of the Corresponding186+Source.187+188+ The Corresponding Source for a work in source code form is that189+same work.190+191+ 2. Basic Permissions.192+193+ All rights granted under this License are granted for the term of194+copyright on the Program, and are irrevocable provided the stated195+conditions are met. This License explicitly affirms your unlimited196+permission to run the unmodified Program. The output from running a197+covered work is covered by this License only if the output, given its198+content, constitutes a covered work. This License acknowledges your199+rights of fair use or other equivalent, as provided by copyright law.200+201+ You may make, run and propagate covered works that you do not202+convey, without conditions so long as your license otherwise remains203+in force. You may convey covered works to others for the sole purpose204+of having them make modifications exclusively for you, or provide you205+with facilities for running those works, provided that you comply with206+the terms of this License in conveying all material for which you do207+not control copyright. Those thus making or running the covered works208+for you must do so exclusively on your behalf, under your direction209+and control, on terms that prohibit them from making any copies of210+your copyrighted material outside their relationship with you.211+212+ Conveying under any other circumstances is permitted solely under213+the conditions stated below. Sublicensing is not allowed; section 10214+makes it unnecessary.215+216+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.217+218+ No covered work shall be deemed part of an effective technological219+measure under any applicable law fulfilling obligations under article220+11 of the WIPO copyright treaty adopted on 20 December 1996, or221+similar laws prohibiting or restricting circumvention of such222+measures.223+224+ When you convey a covered work, you waive any legal power to forbid225+circumvention of technological measures to the extent such circumvention226+is effected by exercising rights under this License with respect to227+the covered work, and you disclaim any intention to limit operation or228+modification of the work as a means of enforcing, against the work's229+users, your or third parties' legal rights to forbid circumvention of230+technological measures.231+232+ 4. Conveying Verbatim Copies.233+234+ You may convey verbatim copies of the Program's source code as you235+receive it, in any medium, provided that you conspicuously and236+appropriately publish on each copy an appropriate copyright notice;237+keep intact all notices stating that this License and any238+non-permissive terms added in accord with section 7 apply to the code;239+keep intact all notices of the absence of any warranty; and give all240+recipients a copy of this License along with the Program.241+242+ You may charge any price or no price for each copy that you convey,243+and you may offer support or warranty protection for a fee.244+245+ 5. Conveying Modified Source Versions.246+247+ You may convey a work based on the Program, or the modifications to248+produce it from the Program, in the form of source code under the249+terms of section 4, provided that you also meet all of these conditions:250+251+ a) The work must carry prominent notices stating that you modified252+ it, and giving a relevant date.253+254+ b) The work must carry prominent notices stating that it is255+ released under this License and any conditions added under section256+ 7. This requirement modifies the requirement in section 4 to257+ "keep intact all notices".258+259+ c) You must license the entire work, as a whole, under this260+ License to anyone who comes into possession of a copy. This261+ License will therefore apply, along with any applicable section 7262+ additional terms, to the whole of the work, and all its parts,263+ regardless of how they are packaged. This License gives no264+ permission to license the work in any other way, but it does not265+ invalidate such permission if you have separately received it.266+267+ d) If the work has interactive user interfaces, each must display268+ Appropriate Legal Notices; however, if the Program has interactive269+ interfaces that do not display Appropriate Legal Notices, your270+ work need not make them do so.271+272+ A compilation of a covered work with other separate and independent273+works, which are not by their nature extensions of the covered work,274+and which are not combined with it such as to form a larger program,275+in or on a volume of a storage or distribution medium, is called an276+"aggregate" if the compilation and its resulting copyright are not277+used to limit the access or legal rights of the compilation's users278+beyond what the individual works permit. Inclusion of a covered work279+in an aggregate does not cause this License to apply to the other280+parts of the aggregate.281+282+ 6. Conveying Non-Source Forms.283+284+ You may convey a covered work in object code form under the terms285+of sections 4 and 5, provided that you also convey the286+machine-readable Corresponding Source under the terms of this License,287+in one of these ways:288+289+ a) Convey the object code in, or embodied in, a physical product290+ (including a physical distribution medium), accompanied by the291+ Corresponding Source fixed on a durable physical medium292+ customarily used for software interchange.293+294+ b) Convey the object code in, or embodied in, a physical product295+ (including a physical distribution medium), accompanied by a296+ written offer, valid for at least three years and valid for as297+ long as you offer spare parts or customer support for that product298+ model, to give anyone who possesses the object code either (1) a299+ copy of the Corresponding Source for all the software in the300+ product that is covered by this License, on a durable physical301+ medium customarily used for software interchange, for a price no302+ more than your reasonable cost of physically performing this303+ conveying of source, or (2) access to copy the304+ Corresponding Source from a network server at no charge.305+306+ c) Convey individual copies of the object code with a copy of the307+ written offer to provide the Corresponding Source. This308+ alternative is allowed only occasionally and noncommercially, and309+ only if you received the object code with such an offer, in accord310+ with subsection 6b.311+312+ d) Convey the object code by offering access from a designated313+ place (gratis or for a charge), and offer equivalent access to the314+ Corresponding Source in the same way through the same place at no315+ further charge. You need not require recipients to copy the316+ Corresponding Source along with the object code. If the place to317+ copy the object code is a network server, the Corresponding Source318+ may be on a different server (operated by you or a third party)319+ that supports equivalent copying facilities, provided you maintain320+ clear directions next to the object code saying where to find the321+ Corresponding Source. Regardless of what server hosts the322+ Corresponding Source, you remain obligated to ensure that it is323+ available for as long as needed to satisfy these requirements.324+325+ e) Convey the object code using peer-to-peer transmission, provided326+ you inform other peers where the object code and Corresponding327+ Source of the work are being offered to the general public at no328+ charge under subsection 6d.329+330+ A separable portion of the object code, whose source code is excluded331+from the Corresponding Source as a System Library, need not be332+included in conveying the object code work.333+334+ A "User Product" is either (1) a "consumer product", which means any335+tangible personal property which is normally used for personal, family,336+or household purposes, or (2) anything designed or sold for incorporation337+into a dwelling. In determining whether a product is a consumer product,338+doubtful cases shall be resolved in favor of coverage. For a particular339+product received by a particular user, "normally used" refers to a340+typical or common use of that class of product, regardless of the status341+of the particular user or of the way in which the particular user342+actually uses, or expects or is expected to use, the product. A product343+is a consumer product regardless of whether the product has substantial344+commercial, industrial or non-consumer uses, unless such uses represent345+the only significant mode of use of the product.346+347+ "Installation Information" for a User Product means any methods,348+procedures, authorization keys, or other information required to install349+and execute modified versions of a covered work in that User Product from350+a modified version of its Corresponding Source. The information must351+suffice to ensure that the continued functioning of the modified object352+code is in no case prevented or interfered with solely because353+modification has been made.354+355+ If you convey an object code work under this section in, or with, or356+specifically for use in, a User Product, and the conveying occurs as357+part of a transaction in which the right of possession and use of the358+User Product is transferred to the recipient in perpetuity or for a359+fixed term (regardless of how the transaction is characterized), the360+Corresponding Source conveyed under this section must be accompanied361+by the Installation Information. But this requirement does not apply362+if neither you nor any third party retains the ability to install363+modified object code on the User Product (for example, the work has364+been installed in ROM).365+366+ The requirement to provide Installation Information does not include a367+requirement to continue to provide support service, warranty, or updates368+for a work that has been modified or installed by the recipient, or for369+the User Product in which it has been modified or installed. Access to a370+network may be denied when the modification itself materially and371+adversely affects the operation of the network or violates the rules and372+protocols for communication across the network.373+374+ Corresponding Source conveyed, and Installation Information provided,375+in accord with this section must be in a format that is publicly376+documented (and with an implementation available to the public in377+source code form), and must require no special password or key for378+unpacking, reading or copying.379+380+ 7. Additional Terms.381+382+ "Additional permissions" are terms that supplement the terms of this383+License by making exceptions from one or more of its conditions.384+Additional permissions that are applicable to the entire Program shall385+be treated as though they were included in this License, to the extent386+that they are valid under applicable law. If additional permissions387+apply only to part of the Program, that part may be used separately388+under those permissions, but the entire Program remains governed by389+this License without regard to the additional permissions.390+391+ When you convey a copy of a covered work, you may at your option392+remove any additional permissions from that copy, or from any part of393+it. (Additional permissions may be written to require their own394+removal in certain cases when you modify the work.) You may place395+additional permissions on material, added by you to a covered work,396+for which you have or can give appropriate copyright permission.397+398+ Notwithstanding any other provision of this License, for material you399+add to a covered work, you may (if authorized by the copyright holders of400+that material) supplement the terms of this License with terms:401+402+ a) Disclaiming warranty or limiting liability differently from the403+ terms of sections 15 and 16 of this License; or404+405+ b) Requiring preservation of specified reasonable legal notices or406+ author attributions in that material or in the Appropriate Legal407+ Notices displayed by works containing it; or408+409+ c) Prohibiting misrepresentation of the origin of that material, or410+ requiring that modified versions of such material be marked in411+ reasonable ways as different from the original version; or412+413+ d) Limiting the use for publicity purposes of names of licensors or414+ authors of the material; or415+416+ e) Declining to grant rights under trademark law for use of some417+ trade names, trademarks, or service marks; or418+419+ f) Requiring indemnification of licensors and authors of that420+ material by anyone who conveys the material (or modified versions of421+ it) with contractual assumptions of liability to the recipient, for422+ any liability that these contractual assumptions directly impose on423+ those licensors and authors.424+425+ All other non-permissive additional terms are considered "further426+restrictions" within the meaning of section 10. If the Program as you427+received it, or any part of it, contains a notice stating that it is428+governed by this License along with a term that is a further429+restriction, you may remove that term. If a license document contains430+a further restriction but permits relicensing or conveying under this431+License, you may add to a covered work material governed by the terms432+of that license document, provided that the further restriction does433+not survive such relicensing or conveying.434+435+ If you add terms to a covered work in accord with this section, you436+must place, in the relevant source files, a statement of the437+additional terms that apply to those files, or a notice indicating438+where to find the applicable terms.439+440+ Additional terms, permissive or non-permissive, may be stated in the441+form of a separately written license, or stated as exceptions;442+the above requirements apply either way.443+444+ 8. Termination.445+446+ You may not propagate or modify a covered work except as expressly447+provided under this License. Any attempt otherwise to propagate or448+modify it is void, and will automatically terminate your rights under449+this License (including any patent licenses granted under the third450+paragraph of section 11).451+452+ However, if you cease all violation of this License, then your453+license from a particular copyright holder is reinstated (a)454+provisionally, unless and until the copyright holder explicitly and455+finally terminates your license, and (b) permanently, if the copyright456+holder fails to notify you of the violation by some reasonable means457+prior to 60 days after the cessation.458+459+ Moreover, your license from a particular copyright holder is460+reinstated permanently if the copyright holder notifies you of the461+violation by some reasonable means, this is the first time you have462+received notice of violation of this License (for any work) from that463+copyright holder, and you cure the violation prior to 30 days after464+your receipt of the notice.465+466+ Termination of your rights under this section does not terminate the467+licenses of parties who have received copies or rights from you under468+this License. If your rights have been terminated and not permanently469+reinstated, you do not qualify to receive new licenses for the same470+material under section 10.471+472+ 9. Acceptance Not Required for Having Copies.473+474+ You are not required to accept this License in order to receive or475+run a copy of the Program. Ancillary propagation of a covered work476+occurring solely as a consequence of using peer-to-peer transmission477+to receive a copy likewise does not require acceptance. However,478+nothing other than this License grants you permission to propagate or479+modify any covered work. These actions infringe copyright if you do480+not accept this License. Therefore, by modifying or propagating a481+covered work, you indicate your acceptance of this License to do so.482+483+ 10. Automatic Licensing of Downstream Recipients.484+485+ Each time you convey a covered work, the recipient automatically486+receives a license from the original licensors, to run, modify and487+propagate that work, subject to this License. You are not responsible488+for enforcing compliance by third parties with this License.489+490+ An "entity transaction" is a transaction transferring control of an491+organization, or substantially all assets of one, or subdividing an492+organization, or merging organizations. If propagation of a covered493+work results from an entity transaction, each party to that494+transaction who receives a copy of the work also receives whatever495+licenses to the work the party's predecessor in interest had or could496+give under the previous paragraph, plus a right to possession of the497+Corresponding Source of the work from the predecessor in interest, if498+the predecessor has it or can get it with reasonable efforts.499+500+ You may not impose any further restrictions on the exercise of the501+rights granted or affirmed under this License. For example, you may502+not impose a license fee, royalty, or other charge for exercise of503+rights granted under this License, and you may not initiate litigation504+(including a cross-claim or counterclaim in a lawsuit) alleging that505+any patent claim is infringed by making, using, selling, offering for506+sale, or importing the Program or any portion of it.507+508+ 11. Patents.509+510+ A "contributor" is a copyright holder who authorizes use under this511+License of the Program or a work on which the Program is based. The512+work thus licensed is called the contributor's "contributor version".513+514+ A contributor's "essential patent claims" are all patent claims515+owned or controlled by the contributor, whether already acquired or516+hereafter acquired, that would be infringed by some manner, permitted517+by this License, of making, using, or selling its contributor version,518+but do not include claims that would be infringed only as a519+consequence of further modification of the contributor version. For520+purposes of this definition, "control" includes the right to grant521+patent sublicenses in a manner consistent with the requirements of522+this License.523+524+ Each contributor grants you a non-exclusive, worldwide, royalty-free525+patent license under the contributor's essential patent claims, to526+make, use, sell, offer for sale, import and otherwise run, modify and527+propagate the contents of its contributor version.528+529+ In the following three paragraphs, a "patent license" is any express530+agreement or commitment, however denominated, not to enforce a patent531+(such as an express permission to practice a patent or covenant not to532+sue for patent infringement). To "grant" such a patent license to a533+party means to make such an agreement or commitment not to enforce a534+patent against the party.535+536+ If you convey a covered work, knowingly relying on a patent license,537+and the Corresponding Source of the work is not available for anyone538+to copy, free of charge and under the terms of this License, through a539+publicly available network server or other readily accessible means,540+then you must either (1) cause the Corresponding Source to be so541+available, or (2) arrange to deprive yourself of the benefit of the542+patent license for this particular work, or (3) arrange, in a manner543+consistent with the requirements of this License, to extend the patent544+license to downstream recipients. "Knowingly relying" means you have545+actual knowledge that, but for the patent license, your conveying the546+covered work in a country, or your recipient's use of the covered work547+in a country, would infringe one or more identifiable patents in that548+country that you have reason to believe are valid.549+550+ If, pursuant to or in connection with a single transaction or551+arrangement, you convey, or propagate by procuring conveyance of, a552+covered work, and grant a patent license to some of the parties553+receiving the covered work authorizing them to use, propagate, modify554+or convey a specific copy of the covered work, then the patent license555+you grant is automatically extended to all recipients of the covered556+work and works based on it.557+558+ A patent license is "discriminatory" if it does not include within559+the scope of its coverage, prohibits the exercise of, or is560+conditioned on the non-exercise of one or more of the rights that are561+specifically granted under this License. You may not convey a covered562+work if you are a party to an arrangement with a third party that is563+in the business of distributing software, under which you make payment564+to the third party based on the extent of your activity of conveying565+the work, and under which the third party grants, to any of the566+parties who would receive the covered work from you, a discriminatory567+patent license (a) in connection with copies of the covered work568+conveyed by you (or copies made from those copies), or (b) primarily569+for and in connection with specific products or compilations that570+contain the covered work, unless you entered into that arrangement,571+or that patent license was granted, prior to 28 March 2007.572+573+ Nothing in this License shall be construed as excluding or limiting574+any implied license or other defenses to infringement that may575+otherwise be available to you under applicable patent law.576+577+ 12. No Surrender of Others' Freedom.578+579+ If conditions are imposed on you (whether by court order, agreement or580+otherwise) that contradict the conditions of this License, they do not581+excuse you from the conditions of this License. If you cannot convey a582+covered work so as to satisfy simultaneously your obligations under this583+License and any other pertinent obligations, then as a consequence you may584+not convey it at all. For example, if you agree to terms that obligate you585+to collect a royalty for further conveying from those to whom you convey586+the Program, the only way you could satisfy both those terms and this587+License would be to refrain entirely from conveying the Program.588+589+ 13. Use with the GNU Affero General Public License.590+591+ Notwithstanding any other provision of this License, you have592+permission to link or combine any covered work with a work licensed593+under version 3 of the GNU Affero General Public License into a single594+combined work, and to convey the resulting work. The terms of this595+License will continue to apply to the part which is the covered work,596+but the special requirements of the GNU Affero General Public License,597+section 13, concerning interaction through a network will apply to the598+combination as such.599+600+ 14. Revised Versions of this License.601+602+ The Free Software Foundation may publish revised and/or new versions of603+the GNU General Public License from time to time. Such new versions will604+be similar in spirit to the present version, but may differ in detail to605+address new problems or concerns.606+607+ Each version is given a distinguishing version number. If the608+Program specifies that a certain numbered version of the GNU General609+Public License "or any later version" applies to it, you have the610+option of following the terms and conditions either of that numbered611+version or of any later version published by the Free Software612+Foundation. If the Program does not specify a version number of the613+GNU General Public License, you may choose any version ever published614+by the Free Software Foundation.615+616+ If the Program specifies that a proxy can decide which future617+versions of the GNU General Public License can be used, that proxy's618+public statement of acceptance of a version permanently authorizes you619+to choose that version for the Program.620+621+ Later license versions may give you additional or different622+permissions. However, no additional obligations are imposed on any623+author or copyright holder as a result of your choosing to follow a624+later version.625+626+ 15. Disclaimer of Warranty.627+628+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY629+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT630+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY631+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,632+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR633+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM634+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF635+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.636+637+ 16. Limitation of Liability.638+639+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING640+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS641+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY642+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE643+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF644+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD645+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),646+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF647+SUCH DAMAGES.648+649+ 17. Interpretation of Sections 15 and 16.650+651+ If the disclaimer of warranty and limitation of liability provided652+above cannot be given local legal effect according to their terms,653+reviewing courts shall apply local law that most closely approximates654+an absolute waiver of all civil liability in connection with the655+Program, unless a warranty or assumption of liability accompanies a656+copy of the Program in return for a fee.657+658+ END OF TERMS AND CONDITIONS659+`,660+ }661+}added:cobra/cmd/license_mit.go+63 added
1+// Copyright © 2015 Steve Francia <spf@spf13.com>.2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+// http://www.apache.org/licenses/LICENSE-2.07+//8+// Unless required by applicable law or agreed to in writing, software9+// distributed under the License is distributed on an "AS IS" BASIS,10+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11+// See the License for the specific language governing permissions and12+// limitations under the License.13+14+// Parts inspired by https://github.com/ryanuber/go-license15+16+package cmd17+18+func initMit() {19+ Licenses["mit"] = License{20+ Name: "Mit",21+ PossibleMatches: []string{"mit"},22+ Header: `23+Permission is hereby granted, free of charge, to any person obtaining a copy24+of this software and associated documentation files (the "Software"), to deal25+in the Software without restriction, including without limitation the rights26+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell27+copies of the Software, and to permit persons to whom the Software is28+furnished to do so, subject to the following conditions:29+30+The above copyright notice and this permission notice shall be included in31+all copies or substantial portions of the Software.32+33+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR34+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,35+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE36+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER37+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,38+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN39+THE SOFTWARE.`,40+ Text: `The MIT License (MIT)41+42+{{ .copyright }}43+44+Permission is hereby granted, free of charge, to any person obtaining a copy45+of this software and associated documentation files (the "Software"), to deal46+in the Software without restriction, including without limitation the rights47+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell48+copies of the Software, and to permit persons to whom the Software is49+furnished to do so, subject to the following conditions:50+51+The above copyright notice and this permission notice shall be included in52+all copies or substantial portions of the Software.53+54+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR55+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,56+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE57+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER58+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,59+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN60+THE SOFTWARE.61+`,62+ }63+}modified:cobra/cmd/licenses.go+6 added-1315 removed
50 unmodified lines51 52 // Allows a user to use config for a custom license.53 Licenses["custom"] = License{"Custom", []string{}, "", ""}54 55- Licenses["apache"] = License{56- Name: "Apache 2.0",57- PossibleMatches: []string{"apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"},58- Header: `59-// Licensed under the Apache License, Version 2.0 (the "License");60-// you may not use this file except in compliance with the License.61-// You may obtain a copy of the License at62-//63-// http://www.apache.org/licenses/LICENSE-2.064-//65-// Unless required by applicable law or agreed to in writing, software66-// distributed under the License is distributed on an "AS IS" BASIS,67-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.68-// See the License for the specific language governing permissions and69-// limitations under the License.`,70- Text: `71- Apache License72- Version 2.0, January 200473- http://www.apache.org/licenses/55+ initApache2()56 75- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION57+ initMit()58 77- 1. Definitions.59+ initBsdClause3()60 79- "License" shall mean the terms and conditions for use, reproduction,80- and distribution as defined by Sections 1 through 9 of this document.61+ initBsdClause2()62 82- "Licensor" shall mean the copyright owner or entity authorized by83- the copyright owner that is granting the License.63+ initGpl2()64 85- "Legal Entity" shall mean the union of the acting entity and all86- other entities that control, are controlled by, or are under common87- control with that entity. For the purposes of this definition,88- "control" means (i) the power, direct or indirect, to cause the89- direction or management of such entity, whether by contract or90- otherwise, or (ii) ownership of fifty percent (50%) or more of the91- outstanding shares, or (iii) beneficial ownership of such entity.65+ initGpl3()66 93- "You" (or "Your") shall mean an individual or Legal Entity94- exercising permissions granted by this License.95-96- "Source" form shall mean the preferred form for making modifications,97- including but not limited to software source code, documentation98- source, and configuration files.99-100- "Object" form shall mean any form resulting from mechanical101- transformation or translation of a Source form, including but102- not limited to compiled object code, generated documentation,103- and conversions to other media types.104-105- "Work" shall mean the work of authorship, whether in Source or106- Object form, made available under the License, as indicated by a107- copyright notice that is included in or attached to the work108- (an example is provided in the Appendix below).109-110- "Derivative Works" shall mean any work, whether in Source or Object111- form, that is based on (or derived from) the Work and for which the112- editorial revisions, annotations, elaborations, or other modifications113- represent, as a whole, an original work of authorship. For the purposes114- of this License, Derivative Works shall not include works that remain115- separable from, or merely link (or bind by name) to the interfaces of,116- the Work and Derivative Works thereof.117-118- "Contribution" shall mean any work of authorship, including119- the original version of the Work and any modifications or additions120- to that Work or Derivative Works thereof, that is intentionally121- submitted to Licensor for inclusion in the Work by the copyright owner122- or by an individual or Legal Entity authorized to submit on behalf of123- the copyright owner. For the purposes of this definition, "submitted"124- means any form of electronic, verbal, or written communication sent125- to the Licensor or its representatives, including but not limited to126- communication on electronic mailing lists, source code control systems,127- and issue tracking systems that are managed by, or on behalf of, the128- Licensor for the purpose of discussing and improving the Work, but129- excluding communication that is conspicuously marked or otherwise130- designated in writing by the copyright owner as "Not a Contribution."131-132- "Contributor" shall mean Licensor and any individual or Legal Entity133- on behalf of whom a Contribution has been received by Licensor and134- subsequently incorporated within the Work.135-136- 2. Grant of Copyright License. Subject to the terms and conditions of137- this License, each Contributor hereby grants to You a perpetual,138- worldwide, non-exclusive, no-charge, royalty-free, irrevocable139- copyright license to reproduce, prepare Derivative Works of,140- publicly display, publicly perform, sublicense, and distribute the141- Work and such Derivative Works in Source or Object form.142-143- 3. Grant of Patent License. Subject to the terms and conditions of144- this License, each Contributor hereby grants to You a perpetual,145- worldwide, non-exclusive, no-charge, royalty-free, irrevocable146- (except as stated in this section) patent license to make, have made,147- use, offer to sell, sell, import, and otherwise transfer the Work,148- where such license applies only to those patent claims licensable149- by such Contributor that are necessarily infringed by their150- Contribution(s) alone or by combination of their Contribution(s)151- with the Work to which such Contribution(s) was submitted. If You152- institute patent litigation against any entity (including a153- cross-claim or counterclaim in a lawsuit) alleging that the Work154- or a Contribution incorporated within the Work constitutes direct155- or contributory patent infringement, then any patent licenses156- granted to You under this License for that Work shall terminate157- as of the date such litigation is filed.158-159- 4. Redistribution. You may reproduce and distribute copies of the160- Work or Derivative Works thereof in any medium, with or without161- modifications, and in Source or Object form, provided that You162- meet the following conditions:163-164- (a) You must give any other recipients of the Work or165- Derivative Works a copy of this License; and166-167- (b) You must cause any modified files to carry prominent notices168- stating that You changed the files; and169-170- (c) You must retain, in the Source form of any Derivative Works171- that You distribute, all copyright, patent, trademark, and172- attribution notices from the Source form of the Work,173- excluding those notices that do not pertain to any part of174- the Derivative Works; and175-176- (d) If the Work includes a "NOTICE" text file as part of its177- distribution, then any Derivative Works that You distribute must178- include a readable copy of the attribution notices contained179- within such NOTICE file, excluding those notices that do not180- pertain to any part of the Derivative Works, in at least one181- of the following places: within a NOTICE text file distributed182- as part of the Derivative Works; within the Source form or183- documentation, if provided along with the Derivative Works; or,184- within a display generated by the Derivative Works, if and185- wherever such third-party notices normally appear. The contents186- of the NOTICE file are for informational purposes only and187- do not modify the License. You may add Your own attribution188- notices within Derivative Works that You distribute, alongside189- or as an addendum to the NOTICE text from the Work, provided190- that such additional attribution notices cannot be construed191- as modifying the License.192-193- You may add Your own copyright statement to Your modifications and194- may provide additional or different license terms and conditions195- for use, reproduction, or distribution of Your modifications, or196- for any such Derivative Works as a whole, provided Your use,197- reproduction, and distribution of the Work otherwise complies with198- the conditions stated in this License.199-200- 5. Submission of Contributions. Unless You explicitly state otherwise,201- any Contribution intentionally submitted for inclusion in the Work202- by You to the Licensor shall be under the terms and conditions of203- this License, without any additional terms or conditions.204- Notwithstanding the above, nothing herein shall supersede or modify205- the terms of any separate license agreement you may have executed206- with Licensor regarding such Contributions.207-208- 6. Trademarks. This License does not grant permission to use the trade209- names, trademarks, service marks, or product names of the Licensor,210- except as required for reasonable and customary use in describing the211- origin of the Work and reproducing the content of the NOTICE file.212-213- 7. Disclaimer of Warranty. Unless required by applicable law or214- agreed to in writing, Licensor provides the Work (and each215- Contributor provides its Contributions) on an "AS IS" BASIS,216- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or217- implied, including, without limitation, any warranties or conditions218- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A219- PARTICULAR PURPOSE. You are solely responsible for determining the220- appropriateness of using or redistributing the Work and assume any221- risks associated with Your exercise of permissions under this License.222-223- 8. Limitation of Liability. In no event and under no legal theory,224- whether in tort (including negligence), contract, or otherwise,225- unless required by applicable law (such as deliberate and grossly226- negligent acts) or agreed to in writing, shall any Contributor be227- liable to You for damages, including any direct, indirect, special,228- incidental, or consequential damages of any character arising as a229- result of this License or out of the use or inability to use the230- Work (including but not limited to damages for loss of goodwill,231- work stoppage, computer failure or malfunction, or any and all232- other commercial damages or losses), even if such Contributor233- has been advised of the possibility of such damages.234-235- 9. Accepting Warranty or Additional Liability. While redistributing236- the Work or Derivative Works thereof, You may choose to offer,237- and charge a fee for, acceptance of support, warranty, indemnity,238- or other liability obligations and/or rights consistent with this239- License. However, in accepting such obligations, You may act only240- on Your own behalf and on Your sole responsibility, not on behalf241- of any other Contributor, and only if You agree to indemnify,242- defend, and hold each Contributor harmless for any liability243- incurred by, or claims asserted against, such Contributor by reason244- of your accepting any such warranty or additional liability.245-246- END OF TERMS AND CONDITIONS247-248- APPENDIX: How to apply the Apache License to your work.249-250- To apply the Apache License to your work, attach the following251- boilerplate notice, with the fields enclosed by brackets "[]"252- replaced with your own identifying information. (Don't include253- the brackets!) The text should be enclosed in the appropriate254- comment syntax for the file format. We also recommend that a255- file or class name and description of purpose be included on the256- same "printed page" as the copyright notice for easier257- identification within third-party archives.258-259- Copyright [yyyy] [name of copyright owner]260-261- Licensed under the Apache License, Version 2.0 (the "License");262- you may not use this file except in compliance with the License.263- You may obtain a copy of the License at264-265- http://www.apache.org/licenses/LICENSE-2.0266-267- Unless required by applicable law or agreed to in writing, software268- distributed under the License is distributed on an "AS IS" BASIS,269- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.270- See the License for the specific language governing permissions and271- limitations under the License.272-`,273- }274-275- Licenses["mit"] = License{276- Name: "Mit",277- PossibleMatches: []string{"mit"},278- Header: `279-Permission is hereby granted, free of charge, to any person obtaining a copy280-of this software and associated documentation files (the "Software"), to deal281-in the Software without restriction, including without limitation the rights282-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell283-copies of the Software, and to permit persons to whom the Software is284-furnished to do so, subject to the following conditions:285-286-The above copyright notice and this permission notice shall be included in287-all copies or substantial portions of the Software.288-289-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR290-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,291-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE292-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER293-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,294-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN295-THE SOFTWARE.`,296- Text: `The MIT License (MIT)297-298-{{ .copyright }}299-300-Permission is hereby granted, free of charge, to any person obtaining a copy301-of this software and associated documentation files (the "Software"), to deal302-in the Software without restriction, including without limitation the rights303-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell304-copies of the Software, and to permit persons to whom the Software is305-furnished to do so, subject to the following conditions:306-307-The above copyright notice and this permission notice shall be included in308-all copies or substantial portions of the Software.309-310-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR311-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,312-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE313-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER314-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,315-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN316-THE SOFTWARE.317-`,318- }319-320- Licenses["bsd"] = License{321- Name: "NewBSD",322- PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd"},323- Header: `324-All rights reserved.325-326-Redistribution and use in source and binary forms, with or without327-modification, are permitted provided that the following conditions are met:328-329-1. Redistributions of source code must retain the above copyright notice,330- this list of conditions and the following disclaimer.331-332-2. Redistributions in binary form must reproduce the above copyright notice,333- this list of conditions and the following disclaimer in the documentation334- and/or other materials provided with the distribution.335-336-3. Neither the name of the copyright holder nor the names of its contributors337- may be used to endorse or promote products derived from this software338- without specific prior written permission.339-340-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"341-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE342-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE343-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE344-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR345-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF346-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS347-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN348-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)349-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE350-POSSIBILITY OF SUCH DAMAGE.`,351- Text: `{{ .copyright }}352-All rights reserved.353-354-Redistribution and use in source and binary forms, with or without355-modification, are permitted provided that the following conditions are met:356-357-1. Redistributions of source code must retain the above copyright notice,358- this list of conditions and the following disclaimer.359-360-2. Redistributions in binary form must reproduce the above copyright notice,361- this list of conditions and the following disclaimer in the documentation362- and/or other materials provided with the distribution.363-364-3. Neither the name of the copyright holder nor the names of its contributors365- may be used to endorse or promote products derived from this software366- without specific prior written permission.367-368-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"369-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE370-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE371-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE372-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL373-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR374-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER375-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,376-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE377-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.378-`,379- }380-381- Licenses["freebsd"] = License{382- Name: "Simplified BSD License",383- PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2 clause bsd"},384- Header: `385-All rights reserved.386-387-Redistribution and use in source and binary forms, with or without388-modification, are permitted provided that the following conditions are met:389-390-1. Redistributions of source code must retain the above copyright notice,391- this list of conditions and the following disclaimer.392-393-2. Redistributions in binary form must reproduce the above copyright notice,394- this list of conditions and the following disclaimer in the documentation395- and/or other materials provided with the distribution.396-397-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"398-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE399-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE400-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE401-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR402-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF403-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS404-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN405-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)406-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE407-POSSIBILITY OF SUCH DAMAGE.`,408- Text: `{{ .copyright }}409-All rights reserved.410-411-Redistribution and use in source and binary forms, with or without412-modification, are permitted provided that the following conditions are met:413-414-1. Redistributions of source code must retain the above copyright notice,415- this list of conditions and the following disclaimer.416-417-2. Redistributions in binary form must reproduce the above copyright notice,418- this list of conditions and the following disclaimer in the documentation419- and/or other materials provided with the distribution.420-421-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"422-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE423-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE424-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE425-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL426-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR427-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER428-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,429-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE430-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.431-`,432- }433-434- Licenses["gpl2"] = License{435- Name: "GNU General Public License 2.0",436- PossibleMatches: []string{"gpl2", "gnu gpl2"},437- Header: `{{ .copyright }}438-439- {{ .appName }} is free software; you can redistribute it and/or440- modify it under the terms of the GNU General Public License441- as published by the Free Software Foundation; either version 2442- of the License, or (at your option) any later version.443-444- {{ .appName }} is distributed in the hope that it will be useful,445- but WITHOUT ANY WARRANTY; without even the implied warranty of446- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the447- GNU General Public License for more details.448-449- You should have received a copy of the GNU Lesser General Public License450- along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,451- Text: ` GNU GENERAL PUBLIC LICENSE452- Version 2, June 1991453-454- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,455- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA456- Everyone is permitted to copy and distribute verbatim copies457- of this license document, but changing it is not allowed.458-459- Preamble460-461- The licenses for most software are designed to take away your462-freedom to share and change it. By contrast, the GNU General Public463-License is intended to guarantee your freedom to share and change free464-software--to make sure the software is free for all its users. This465-General Public License applies to most of the Free Software466-Foundation's software and to any other program whose authors commit to467-using it. (Some other Free Software Foundation software is covered by468-the GNU Lesser General Public License instead.) You can apply it to469-your programs, too.470-471- When we speak of free software, we are referring to freedom, not472-price. Our General Public Licenses are designed to make sure that you473-have the freedom to distribute copies of free software (and charge for474-this service if you wish), that you receive source code or can get it475-if you want it, that you can change the software or use pieces of it476-in new free programs; and that you know you can do these things.477-478- To protect your rights, we need to make restrictions that forbid479-anyone to deny you these rights or to ask you to surrender the rights.480-These restrictions translate to certain responsibilities for you if you481-distribute copies of the software, or if you modify it.482-483- For example, if you distribute copies of such a program, whether484-gratis or for a fee, you must give the recipients all the rights that485-you have. You must make sure that they, too, receive or can get the486-source code. And you must show them these terms so they know their487-rights.488-489- We protect your rights with two steps: (1) copyright the software, and490-(2) offer you this license which gives you legal permission to copy,491-distribute and/or modify the software.492-493- Also, for each author's protection and ours, we want to make certain494-that everyone understands that there is no warranty for this free495-software. If the software is modified by someone else and passed on, we496-want its recipients to know that what they have is not the original, so497-that any problems introduced by others will not reflect on the original498-authors' reputations.499-500- Finally, any free program is threatened constantly by software501-patents. We wish to avoid the danger that redistributors of a free502-program will individually obtain patent licenses, in effect making the503-program proprietary. To prevent this, we have made it clear that any504-patent must be licensed for everyone's free use or not licensed at all.505-506- The precise terms and conditions for copying, distribution and507-modification follow.508-509- GNU GENERAL PUBLIC LICENSE510- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION511-512- 0. This License applies to any program or other work which contains513-a notice placed by the copyright holder saying it may be distributed514-under the terms of this General Public License. The "Program", below,515-refers to any such program or work, and a "work based on the Program"516-means either the Program or any derivative work under copyright law:517-that is to say, a work containing the Program or a portion of it,518-either verbatim or with modifications and/or translated into another519-language. (Hereinafter, translation is included without limitation in520-the term "modification".) Each licensee is addressed as "you".521-522-Activities other than copying, distribution and modification are not523-covered by this License; they are outside its scope. The act of524-running the Program is not restricted, and the output from the Program525-is covered only if its contents constitute a work based on the526-Program (independent of having been made by running the Program).527-Whether that is true depends on what the Program does.528-529- 1. You may copy and distribute verbatim copies of the Program's530-source code as you receive it, in any medium, provided that you531-conspicuously and appropriately publish on each copy an appropriate532-copyright notice and disclaimer of warranty; keep intact all the533-notices that refer to this License and to the absence of any warranty;534-and give any other recipients of the Program a copy of this License535-along with the Program.536-537-You may charge a fee for the physical act of transferring a copy, and538-you may at your option offer warranty protection in exchange for a fee.539-540- 2. You may modify your copy or copies of the Program or any portion541-of it, thus forming a work based on the Program, and copy and542-distribute such modifications or work under the terms of Section 1543-above, provided that you also meet all of these conditions:544-545- a) You must cause the modified files to carry prominent notices546- stating that you changed the files and the date of any change.547-548- b) You must cause any work that you distribute or publish, that in549- whole or in part contains or is derived from the Program or any550- part thereof, to be licensed as a whole at no charge to all third551- parties under the terms of this License.552-553- c) If the modified program normally reads commands interactively554- when run, you must cause it, when started running for such555- interactive use in the most ordinary way, to print or display an556- announcement including an appropriate copyright notice and a557- notice that there is no warranty (or else, saying that you provide558- a warranty) and that users may redistribute the program under559- these conditions, and telling the user how to view a copy of this560- License. (Exception: if the Program itself is interactive but561- does not normally print such an announcement, your work based on562- the Program is not required to print an announcement.)563-564-These requirements apply to the modified work as a whole. If565-identifiable sections of that work are not derived from the Program,566-and can be reasonably considered independent and separate works in567-themselves, then this License, and its terms, do not apply to those568-sections when you distribute them as separate works. But when you569-distribute the same sections as part of a whole which is a work based570-on the Program, the distribution of the whole must be on the terms of571-this License, whose permissions for other licensees extend to the572-entire whole, and thus to each and every part regardless of who wrote it.573-574-Thus, it is not the intent of this section to claim rights or contest575-your rights to work written entirely by you; rather, the intent is to576-exercise the right to control the distribution of derivative or577-collective works based on the Program.578-579-In addition, mere aggregation of another work not based on the Program580-with the Program (or with a work based on the Program) on a volume of581-a storage or distribution medium does not bring the other work under582-the scope of this License.583-584- 3. You may copy and distribute the Program (or a work based on it,585-under Section 2) in object code or executable form under the terms of586-Sections 1 and 2 above provided that you also do one of the following:587-588- a) Accompany it with the complete corresponding machine-readable589- source code, which must be distributed under the terms of Sections590- 1 and 2 above on a medium customarily used for software interchange; or,591-592- b) Accompany it with a written offer, valid for at least three593- years, to give any third party, for a charge no more than your594- cost of physically performing source distribution, a complete595- machine-readable copy of the corresponding source code, to be596- distributed under the terms of Sections 1 and 2 above on a medium597- customarily used for software interchange; or,598-599- c) Accompany it with the information you received as to the offer600- to distribute corresponding source code. (This alternative is601- allowed only for noncommercial distribution and only if you602- received the program in object code or executable form with such603- an offer, in accord with Subsection b above.)604-605-The source code for a work means the preferred form of the work for606-making modifications to it. For an executable work, complete source607-code means all the source code for all modules it contains, plus any608-associated interface definition files, plus the scripts used to609-control compilation and installation of the executable. However, as a610-special exception, the source code distributed need not include611-anything that is normally distributed (in either source or binary612-form) with the major components (compiler, kernel, and so on) of the613-operating system on which the executable runs, unless that component614-itself accompanies the executable.615-616-If distribution of executable or object code is made by offering617-access to copy from a designated place, then offering equivalent618-access to copy the source code from the same place counts as619-distribution of the source code, even though third parties are not620-compelled to copy the source along with the object code.621-622- 4. You may not copy, modify, sublicense, or distribute the Program623-except as expressly provided under this License. Any attempt624-otherwise to copy, modify, sublicense or distribute the Program is625-void, and will automatically terminate your rights under this License.626-However, parties who have received copies, or rights, from you under627-this License will not have their licenses terminated so long as such628-parties remain in full compliance.629-630- 5. You are not required to accept this License, since you have not631-signed it. However, nothing else grants you permission to modify or632-distribute the Program or its derivative works. These actions are633-prohibited by law if you do not accept this License. Therefore, by634-modifying or distributing the Program (or any work based on the635-Program), you indicate your acceptance of this License to do so, and636-all its terms and conditions for copying, distributing or modifying637-the Program or works based on it.638-639- 6. Each time you redistribute the Program (or any work based on the640-Program), the recipient automatically receives a license from the641-original licensor to copy, distribute or modify the Program subject to642-these terms and conditions. You may not impose any further643-restrictions on the recipients' exercise of the rights granted herein.644-You are not responsible for enforcing compliance by third parties to645-this License.646-647- 7. If, as a consequence of a court judgment or allegation of patent648-infringement or for any other reason (not limited to patent issues),649-conditions are imposed on you (whether by court order, agreement or650-otherwise) that contradict the conditions of this License, they do not651-excuse you from the conditions of this License. If you cannot652-distribute so as to satisfy simultaneously your obligations under this653-License and any other pertinent obligations, then as a consequence you654-may not distribute the Program at all. For example, if a patent655-license would not permit royalty-free redistribution of the Program by656-all those who receive copies directly or indirectly through you, then657-the only way you could satisfy both it and this License would be to658-refrain entirely from distribution of the Program.659-660-If any portion of this section is held invalid or unenforceable under661-any particular circumstance, the balance of the section is intended to662-apply and the section as a whole is intended to apply in other663-circumstances.664-665-It is not the purpose of this section to induce you to infringe any666-patents or other property right claims or to contest validity of any667-such claims; this section has the sole purpose of protecting the668-integrity of the free software distribution system, which is669-implemented by public license practices. Many people have made670-generous contributions to the wide range of software distributed671-through that system in reliance on consistent application of that672-system; it is up to the author/donor to decide if he or she is willing673-to distribute software through any other system and a licensee cannot674-impose that choice.675-676-This section is intended to make thoroughly clear what is believed to677-be a consequence of the rest of this License.678-679- 8. If the distribution and/or use of the Program is restricted in680-certain countries either by patents or by copyrighted interfaces, the681-original copyright holder who places the Program under this License682-may add an explicit geographical distribution limitation excluding683-those countries, so that distribution is permitted only in or among684-countries not thus excluded. In such case, this License incorporates685-the limitation as if written in the body of this License.686-687- 9. The Free Software Foundation may publish revised and/or new versions688-of the General Public License from time to time. Such new versions will689-be similar in spirit to the present version, but may differ in detail to690-address new problems or concerns.691-692-Each version is given a distinguishing version number. If the Program693-specifies a version number of this License which applies to it and "any694-later version", you have the option of following the terms and conditions695-either of that version or of any later version published by the Free696-Software Foundation. If the Program does not specify a version number of697-this License, you may choose any version ever published by the Free Software698-Foundation.699-700- 10. If you wish to incorporate parts of the Program into other free701-programs whose distribution conditions are different, write to the author702-to ask for permission. For software which is copyrighted by the Free703-Software Foundation, write to the Free Software Foundation; we sometimes704-make exceptions for this. Our decision will be guided by the two goals705-of preserving the free status of all derivatives of our free software and706-of promoting the sharing and reuse of software generally.707-708- NO WARRANTY709-710- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY711-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN712-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES713-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED714-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF715-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS716-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE717-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,718-REPAIR OR CORRECTION.719-720- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING721-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR722-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,723-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING724-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED725-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY726-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER727-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE728-POSSIBILITY OF SUCH DAMAGES.729-730- END OF TERMS AND CONDITIONS731-`,732- }733- Licenses["gpl3"] = License{734- Name: "GNU General Public License 3.0",735- PossibleMatches: []string{"gpl3", "gpl", "gnu gpl3", "gnu gpl"},736- Header: `737-This file is part of {{ .appName }}.738-739-{{ .appName }} is free software: you can redistribute it and/or modify740-it under the terms of the GNU Lesser General Public License as published by741-the Free Software Foundation, either version 3 of the License, or742-(at your option) any later version.743-744-{{ .appName }} is distributed in the hope that it will be useful,745-but WITHOUT ANY WARRANTY; without even the implied warranty of746-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the747-GNU Lesser General Public License for more details.748-749-You should have received a copy of the GNU Lesser General Public License750-along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.751- `,752- Text: ` GNU GENERAL PUBLIC LICENSE753- Version 3, 29 June 2007754-755- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>756- Everyone is permitted to copy and distribute verbatim copies757- of this license document, but changing it is not allowed.758-759- Preamble760-761- The GNU General Public License is a free, copyleft license for762-software and other kinds of works.763-764- The licenses for most software and other practical works are designed765-to take away your freedom to share and change the works. By contrast,766-the GNU General Public License is intended to guarantee your freedom to767-share and change all versions of a program--to make sure it remains free768-software for all its users. We, the Free Software Foundation, use the769-GNU General Public License for most of our software; it applies also to770-any other work released this way by its authors. You can apply it to771-your programs, too.772-773- When we speak of free software, we are referring to freedom, not774-price. Our General Public Licenses are designed to make sure that you775-have the freedom to distribute copies of free software (and charge for776-them if you wish), that you receive source code or can get it if you777-want it, that you can change the software or use pieces of it in new778-free programs, and that you know you can do these things.779-780- To protect your rights, we need to prevent others from denying you781-these rights or asking you to surrender the rights. Therefore, you have782-certain responsibilities if you distribute copies of the software, or if783-you modify it: responsibilities to respect the freedom of others.784-785- For example, if you distribute copies of such a program, whether786-gratis or for a fee, you must pass on to the recipients the same787-freedoms that you received. You must make sure that they, too, receive788-or can get the source code. And you must show them these terms so they789-know their rights.790-791- Developers that use the GNU GPL protect your rights with two steps:792-(1) assert copyright on the software, and (2) offer you this License793-giving you legal permission to copy, distribute and/or modify it.794-795- For the developers' and authors' protection, the GPL clearly explains796-that there is no warranty for this free software. For both users' and797-authors' sake, the GPL requires that modified versions be marked as798-changed, so that their problems will not be attributed erroneously to799-authors of previous versions.800-801- Some devices are designed to deny users access to install or run802-modified versions of the software inside them, although the manufacturer803-can do so. This is fundamentally incompatible with the aim of804-protecting users' freedom to change the software. The systematic805-pattern of such abuse occurs in the area of products for individuals to806-use, which is precisely where it is most unacceptable. Therefore, we807-have designed this version of the GPL to prohibit the practice for those808-products. If such problems arise substantially in other domains, we809-stand ready to extend this provision to those domains in future versions810-of the GPL, as needed to protect the freedom of users.811-812- Finally, every program is threatened constantly by software patents.813-States should not allow patents to restrict development and use of814-software on general-purpose computers, but in those that do, we wish to815-avoid the special danger that patents applied to a free program could816-make it effectively proprietary. To prevent this, the GPL assures that817-patents cannot be used to render the program non-free.818-819- The precise terms and conditions for copying, distribution and820-modification follow.821-822- TERMS AND CONDITIONS823-824- 0. Definitions.825-826- "This License" refers to version 3 of the GNU General Public License.827-828- "Copyright" also means copyright-like laws that apply to other kinds of829-works, such as semiconductor masks.830-831- "The Program" refers to any copyrightable work licensed under this832-License. Each licensee is addressed as "you". "Licensees" and833-"recipients" may be individuals or organizations.834-835- To "modify" a work means to copy from or adapt all or part of the work836-in a fashion requiring copyright permission, other than the making of an837-exact copy. The resulting work is called a "modified version" of the838-earlier work or a work "based on" the earlier work.839-840- A "covered work" means either the unmodified Program or a work based841-on the Program.842-843- To "propagate" a work means to do anything with it that, without844-permission, would make you directly or secondarily liable for845-infringement under applicable copyright law, except executing it on a846-computer or modifying a private copy. Propagation includes copying,847-distribution (with or without modification), making available to the848-public, and in some countries other activities as well.849-850- To "convey" a work means any kind of propagation that enables other851-parties to make or receive copies. Mere interaction with a user through852-a computer network, with no transfer of a copy, is not conveying.853-854- An interactive user interface displays "Appropriate Legal Notices"855-to the extent that it includes a convenient and prominently visible856-feature that (1) displays an appropriate copyright notice, and (2)857-tells the user that there is no warranty for the work (except to the858-extent that warranties are provided), that licensees may convey the859-work under this License, and how to view a copy of this License. If860-the interface presents a list of user commands or options, such as a861-menu, a prominent item in the list meets this criterion.862-863- 1. Source Code.864-865- The "source code" for a work means the preferred form of the work866-for making modifications to it. "Object code" means any non-source867-form of a work.868-869- A "Standard Interface" means an interface that either is an official870-standard defined by a recognized standards body, or, in the case of871-interfaces specified for a particular programming language, one that872-is widely used among developers working in that language.873-874- The "System Libraries" of an executable work include anything, other875-than the work as a whole, that (a) is included in the normal form of876-packaging a Major Component, but which is not part of that Major877-Component, and (b) serves only to enable use of the work with that878-Major Component, or to implement a Standard Interface for which an879-implementation is available to the public in source code form. A880-"Major Component", in this context, means a major essential component881-(kernel, window system, and so on) of the specific operating system882-(if any) on which the executable work runs, or a compiler used to883-produce the work, or an object code interpreter used to run it.884-885- The "Corresponding Source" for a work in object code form means all886-the source code needed to generate, install, and (for an executable887-work) run the object code and to modify the work, including scripts to888-control those activities. However, it does not include the work's889-System Libraries, or general-purpose tools or generally available free890-programs which are used unmodified in performing those activities but891-which are not part of the work. For example, Corresponding Source892-includes interface definition files associated with source files for893-the work, and the source code for shared libraries and dynamically894-linked subprograms that the work is specifically designed to require,895-such as by intimate data communication or control flow between those896-subprograms and other parts of the work.897-898- The Corresponding Source need not include anything that users899-can regenerate automatically from other parts of the Corresponding900-Source.901-902- The Corresponding Source for a work in source code form is that903-same work.904-905- 2. Basic Permissions.906-907- All rights granted under this License are granted for the term of908-copyright on the Program, and are irrevocable provided the stated909-conditions are met. This License explicitly affirms your unlimited910-permission to run the unmodified Program. The output from running a911-covered work is covered by this License only if the output, given its912-content, constitutes a covered work. This License acknowledges your913-rights of fair use or other equivalent, as provided by copyright law.914-915- You may make, run and propagate covered works that you do not916-convey, without conditions so long as your license otherwise remains917-in force. You may convey covered works to others for the sole purpose918-of having them make modifications exclusively for you, or provide you919-with facilities for running those works, provided that you comply with920-the terms of this License in conveying all material for which you do921-not control copyright. Those thus making or running the covered works922-for you must do so exclusively on your behalf, under your direction923-and control, on terms that prohibit them from making any copies of924-your copyrighted material outside their relationship with you.925-926- Conveying under any other circumstances is permitted solely under927-the conditions stated below. Sublicensing is not allowed; section 10928-makes it unnecessary.929-930- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.931-932- No covered work shall be deemed part of an effective technological933-measure under any applicable law fulfilling obligations under article934-11 of the WIPO copyright treaty adopted on 20 December 1996, or935-similar laws prohibiting or restricting circumvention of such936-measures.937-938- When you convey a covered work, you waive any legal power to forbid939-circumvention of technological measures to the extent such circumvention940-is effected by exercising rights under this License with respect to941-the covered work, and you disclaim any intention to limit operation or942-modification of the work as a means of enforcing, against the work's943-users, your or third parties' legal rights to forbid circumvention of944-technological measures.945-946- 4. Conveying Verbatim Copies.947-948- You may convey verbatim copies of the Program's source code as you949-receive it, in any medium, provided that you conspicuously and950-appropriately publish on each copy an appropriate copyright notice;951-keep intact all notices stating that this License and any952-non-permissive terms added in accord with section 7 apply to the code;953-keep intact all notices of the absence of any warranty; and give all954-recipients a copy of this License along with the Program.955-956- You may charge any price or no price for each copy that you convey,957-and you may offer support or warranty protection for a fee.958-959- 5. Conveying Modified Source Versions.960-961- You may convey a work based on the Program, or the modifications to962-produce it from the Program, in the form of source code under the963-terms of section 4, provided that you also meet all of these conditions:964-965- a) The work must carry prominent notices stating that you modified966- it, and giving a relevant date.967-968- b) The work must carry prominent notices stating that it is969- released under this License and any conditions added under section970- 7. This requirement modifies the requirement in section 4 to971- "keep intact all notices".972-973- c) You must license the entire work, as a whole, under this974- License to anyone who comes into possession of a copy. This975- License will therefore apply, along with any applicable section 7976- additional terms, to the whole of the work, and all its parts,977- regardless of how they are packaged. This License gives no978- permission to license the work in any other way, but it does not979- invalidate such permission if you have separately received it.980-981- d) If the work has interactive user interfaces, each must display982- Appropriate Legal Notices; however, if the Program has interactive983- interfaces that do not display Appropriate Legal Notices, your984- work need not make them do so.985-986- A compilation of a covered work with other separate and independent987-works, which are not by their nature extensions of the covered work,988-and which are not combined with it such as to form a larger program,989-in or on a volume of a storage or distribution medium, is called an990-"aggregate" if the compilation and its resulting copyright are not991-used to limit the access or legal rights of the compilation's users992-beyond what the individual works permit. Inclusion of a covered work993-in an aggregate does not cause this License to apply to the other994-parts of the aggregate.995-996- 6. Conveying Non-Source Forms.997-998- You may convey a covered work in object code form under the terms999-of sections 4 and 5, provided that you also convey the1000-machine-readable Corresponding Source under the terms of this License,1001-in one of these ways:1002-1003- a) Convey the object code in, or embodied in, a physical product1004- (including a physical distribution medium), accompanied by the1005- Corresponding Source fixed on a durable physical medium1006- customarily used for software interchange.1007-1008- b) Convey the object code in, or embodied in, a physical product1009- (including a physical distribution medium), accompanied by a1010- written offer, valid for at least three years and valid for as1011- long as you offer spare parts or customer support for that product1012- model, to give anyone who possesses the object code either (1) a1013- copy of the Corresponding Source for all the software in the1014- product that is covered by this License, on a durable physical1015- medium customarily used for software interchange, for a price no1016- more than your reasonable cost of physically performing this1017- conveying of source, or (2) access to copy the1018- Corresponding Source from a network server at no charge.1019-1020- c) Convey individual copies of the object code with a copy of the1021- written offer to provide the Corresponding Source. This1022- alternative is allowed only occasionally and noncommercially, and1023- only if you received the object code with such an offer, in accord1024- with subsection 6b.1025-1026- d) Convey the object code by offering access from a designated1027- place (gratis or for a charge), and offer equivalent access to the1028- Corresponding Source in the same way through the same place at no1029- further charge. You need not require recipients to copy the1030- Corresponding Source along with the object code. If the place to1031- copy the object code is a network server, the Corresponding Source1032- may be on a different server (operated by you or a third party)1033- that supports equivalent copying facilities, provided you maintain1034- clear directions next to the object code saying where to find the1035- Corresponding Source. Regardless of what server hosts the1036- Corresponding Source, you remain obligated to ensure that it is1037- available for as long as needed to satisfy these requirements.1038-1039- e) Convey the object code using peer-to-peer transmission, provided1040- you inform other peers where the object code and Corresponding1041- Source of the work are being offered to the general public at no1042- charge under subsection 6d.1043-1044- A separable portion of the object code, whose source code is excluded1045-from the Corresponding Source as a System Library, need not be1046-included in conveying the object code work.1047-1048- A "User Product" is either (1) a "consumer product", which means any1049-tangible personal property which is normally used for personal, family,1050-or household purposes, or (2) anything designed or sold for incorporation1051-into a dwelling. In determining whether a product is a consumer product,1052-doubtful cases shall be resolved in favor of coverage. For a particular1053-product received by a particular user, "normally used" refers to a1054-typical or common use of that class of product, regardless of the status1055-of the particular user or of the way in which the particular user1056-actually uses, or expects or is expected to use, the product. A product1057-is a consumer product regardless of whether the product has substantial1058-commercial, industrial or non-consumer uses, unless such uses represent1059-the only significant mode of use of the product.1060-1061- "Installation Information" for a User Product means any methods,1062-procedures, authorization keys, or other information required to install1063-and execute modified versions of a covered work in that User Product from1064-a modified version of its Corresponding Source. The information must1065-suffice to ensure that the continued functioning of the modified object1066-code is in no case prevented or interfered with solely because1067-modification has been made.1068-1069- If you convey an object code work under this section in, or with, or1070-specifically for use in, a User Product, and the conveying occurs as1071-part of a transaction in which the right of possession and use of the1072-User Product is transferred to the recipient in perpetuity or for a1073-fixed term (regardless of how the transaction is characterized), the1074-Corresponding Source conveyed under this section must be accompanied1075-by the Installation Information. But this requirement does not apply1076-if neither you nor any third party retains the ability to install1077-modified object code on the User Product (for example, the work has1078-been installed in ROM).1079-1080- The requirement to provide Installation Information does not include a1081-requirement to continue to provide support service, warranty, or updates1082-for a work that has been modified or installed by the recipient, or for1083-the User Product in which it has been modified or installed. Access to a1084-network may be denied when the modification itself materially and1085-adversely affects the operation of the network or violates the rules and1086-protocols for communication across the network.1087-1088- Corresponding Source conveyed, and Installation Information provided,1089-in accord with this section must be in a format that is publicly1090-documented (and with an implementation available to the public in1091-source code form), and must require no special password or key for1092-unpacking, reading or copying.1093-1094- 7. Additional Terms.1095-1096- "Additional permissions" are terms that supplement the terms of this1097-License by making exceptions from one or more of its conditions.1098-Additional permissions that are applicable to the entire Program shall1099-be treated as though they were included in this License, to the extent1100-that they are valid under applicable law. If additional permissions1101-apply only to part of the Program, that part may be used separately1102-under those permissions, but the entire Program remains governed by1103-this License without regard to the additional permissions.1104-1105- When you convey a copy of a covered work, you may at your option1106-remove any additional permissions from that copy, or from any part of1107-it. (Additional permissions may be written to require their own1108-removal in certain cases when you modify the work.) You may place1109-additional permissions on material, added by you to a covered work,1110-for which you have or can give appropriate copyright permission.1111-1112- Notwithstanding any other provision of this License, for material you1113-add to a covered work, you may (if authorized by the copyright holders of1114-that material) supplement the terms of this License with terms:1115-1116- a) Disclaiming warranty or limiting liability differently from the1117- terms of sections 15 and 16 of this License; or1118-1119- b) Requiring preservation of specified reasonable legal notices or1120- author attributions in that material or in the Appropriate Legal1121- Notices displayed by works containing it; or1122-1123- c) Prohibiting misrepresentation of the origin of that material, or1124- requiring that modified versions of such material be marked in1125- reasonable ways as different from the original version; or1126-1127- d) Limiting the use for publicity purposes of names of licensors or1128- authors of the material; or1129-1130- e) Declining to grant rights under trademark law for use of some1131- trade names, trademarks, or service marks; or1132-1133- f) Requiring indemnification of licensors and authors of that1134- material by anyone who conveys the material (or modified versions of1135- it) with contractual assumptions of liability to the recipient, for1136- any liability that these contractual assumptions directly impose on1137- those licensors and authors.1138-1139- All other non-permissive additional terms are considered "further1140-restrictions" within the meaning of section 10. If the Program as you1141-received it, or any part of it, contains a notice stating that it is1142-governed by this License along with a term that is a further1143-restriction, you may remove that term. If a license document contains1144-a further restriction but permits relicensing or conveying under this1145-License, you may add to a covered work material governed by the terms1146-of that license document, provided that the further restriction does1147-not survive such relicensing or conveying.1148-1149- If you add terms to a covered work in accord with this section, you1150-must place, in the relevant source files, a statement of the1151-additional terms that apply to those files, or a notice indicating1152-where to find the applicable terms.1153-1154- Additional terms, permissive or non-permissive, may be stated in the1155-form of a separately written license, or stated as exceptions;1156-the above requirements apply either way.1157-1158- 8. Termination.1159-1160- You may not propagate or modify a covered work except as expressly1161-provided under this License. Any attempt otherwise to propagate or1162-modify it is void, and will automatically terminate your rights under1163-this License (including any patent licenses granted under the third1164-paragraph of section 11).1165-1166- However, if you cease all violation of this License, then your1167-license from a particular copyright holder is reinstated (a)1168-provisionally, unless and until the copyright holder explicitly and1169-finally terminates your license, and (b) permanently, if the copyright1170-holder fails to notify you of the violation by some reasonable means1171-prior to 60 days after the cessation.1172-1173- Moreover, your license from a particular copyright holder is1174-reinstated permanently if the copyright holder notifies you of the1175-violation by some reasonable means, this is the first time you have1176-received notice of violation of this License (for any work) from that1177-copyright holder, and you cure the violation prior to 30 days after1178-your receipt of the notice.1179-1180- Termination of your rights under this section does not terminate the1181-licenses of parties who have received copies or rights from you under1182-this License. If your rights have been terminated and not permanently1183-reinstated, you do not qualify to receive new licenses for the same1184-material under section 10.1185-1186- 9. Acceptance Not Required for Having Copies.1187-1188- You are not required to accept this License in order to receive or1189-run a copy of the Program. Ancillary propagation of a covered work1190-occurring solely as a consequence of using peer-to-peer transmission1191-to receive a copy likewise does not require acceptance. However,1192-nothing other than this License grants you permission to propagate or1193-modify any covered work. These actions infringe copyright if you do1194-not accept this License. Therefore, by modifying or propagating a1195-covered work, you indicate your acceptance of this License to do so.1196-1197- 10. Automatic Licensing of Downstream Recipients.1198-1199- Each time you convey a covered work, the recipient automatically1200-receives a license from the original licensors, to run, modify and1201-propagate that work, subject to this License. You are not responsible1202-for enforcing compliance by third parties with this License.1203-1204- An "entity transaction" is a transaction transferring control of an1205-organization, or substantially all assets of one, or subdividing an1206-organization, or merging organizations. If propagation of a covered1207-work results from an entity transaction, each party to that1208-transaction who receives a copy of the work also receives whatever1209-licenses to the work the party's predecessor in interest had or could1210-give under the previous paragraph, plus a right to possession of the1211-Corresponding Source of the work from the predecessor in interest, if1212-the predecessor has it or can get it with reasonable efforts.1213-1214- You may not impose any further restrictions on the exercise of the1215-rights granted or affirmed under this License. For example, you may1216-not impose a license fee, royalty, or other charge for exercise of1217-rights granted under this License, and you may not initiate litigation1218-(including a cross-claim or counterclaim in a lawsuit) alleging that1219-any patent claim is infringed by making, using, selling, offering for1220-sale, or importing the Program or any portion of it.1221-1222- 11. Patents.1223-1224- A "contributor" is a copyright holder who authorizes use under this1225-License of the Program or a work on which the Program is based. The1226-work thus licensed is called the contributor's "contributor version".1227-1228- A contributor's "essential patent claims" are all patent claims1229-owned or controlled by the contributor, whether already acquired or1230-hereafter acquired, that would be infringed by some manner, permitted1231-by this License, of making, using, or selling its contributor version,1232-but do not include claims that would be infringed only as a1233-consequence of further modification of the contributor version. For1234-purposes of this definition, "control" includes the right to grant1235-patent sublicenses in a manner consistent with the requirements of1236-this License.1237-1238- Each contributor grants you a non-exclusive, worldwide, royalty-free1239-patent license under the contributor's essential patent claims, to1240-make, use, sell, offer for sale, import and otherwise run, modify and1241-propagate the contents of its contributor version.1242-1243- In the following three paragraphs, a "patent license" is any express1244-agreement or commitment, however denominated, not to enforce a patent1245-(such as an express permission to practice a patent or covenant not to1246-sue for patent infringement). To "grant" such a patent license to a1247-party means to make such an agreement or commitment not to enforce a1248-patent against the party.1249-1250- If you convey a covered work, knowingly relying on a patent license,1251-and the Corresponding Source of the work is not available for anyone1252-to copy, free of charge and under the terms of this License, through a1253-publicly available network server or other readily accessible means,1254-then you must either (1) cause the Corresponding Source to be so1255-available, or (2) arrange to deprive yourself of the benefit of the1256-patent license for this particular work, or (3) arrange, in a manner1257-consistent with the requirements of this License, to extend the patent1258-license to downstream recipients. "Knowingly relying" means you have1259-actual knowledge that, but for the patent license, your conveying the1260-covered work in a country, or your recipient's use of the covered work1261-in a country, would infringe one or more identifiable patents in that1262-country that you have reason to believe are valid.1263-1264- If, pursuant to or in connection with a single transaction or1265-arrangement, you convey, or propagate by procuring conveyance of, a1266-covered work, and grant a patent license to some of the parties1267-receiving the covered work authorizing them to use, propagate, modify1268-or convey a specific copy of the covered work, then the patent license1269-you grant is automatically extended to all recipients of the covered1270-work and works based on it.1271-1272- A patent license is "discriminatory" if it does not include within1273-the scope of its coverage, prohibits the exercise of, or is1274-conditioned on the non-exercise of one or more of the rights that are1275-specifically granted under this License. You may not convey a covered1276-work if you are a party to an arrangement with a third party that is1277-in the business of distributing software, under which you make payment1278-to the third party based on the extent of your activity of conveying1279-the work, and under which the third party grants, to any of the1280-parties who would receive the covered work from you, a discriminatory1281-patent license (a) in connection with copies of the covered work1282-conveyed by you (or copies made from those copies), or (b) primarily1283-for and in connection with specific products or compilations that1284-contain the covered work, unless you entered into that arrangement,1285-or that patent license was granted, prior to 28 March 2007.1286-1287- Nothing in this License shall be construed as excluding or limiting1288-any implied license or other defenses to infringement that may1289-otherwise be available to you under applicable patent law.1290-1291- 12. No Surrender of Others' Freedom.1292-1293- If conditions are imposed on you (whether by court order, agreement or1294-otherwise) that contradict the conditions of this License, they do not1295-excuse you from the conditions of this License. If you cannot convey a1296-covered work so as to satisfy simultaneously your obligations under this1297-License and any other pertinent obligations, then as a consequence you may1298-not convey it at all. For example, if you agree to terms that obligate you1299-to collect a royalty for further conveying from those to whom you convey1300-the Program, the only way you could satisfy both those terms and this1301-License would be to refrain entirely from conveying the Program.1302-1303- 13. Use with the GNU Affero General Public License.1304-1305- Notwithstanding any other provision of this License, you have1306-permission to link or combine any covered work with a work licensed1307-under version 3 of the GNU Affero General Public License into a single1308-combined work, and to convey the resulting work. The terms of this1309-License will continue to apply to the part which is the covered work,1310-but the special requirements of the GNU Affero General Public License,1311-section 13, concerning interaction through a network will apply to the1312-combination as such.1313-1314- 14. Revised Versions of this License.1315-1316- The Free Software Foundation may publish revised and/or new versions of1317-the GNU General Public License from time to time. Such new versions will1318-be similar in spirit to the present version, but may differ in detail to1319-address new problems or concerns.1320-1321- Each version is given a distinguishing version number. If the1322-Program specifies that a certain numbered version of the GNU General1323-Public License "or any later version" applies to it, you have the1324-option of following the terms and conditions either of that numbered1325-version or of any later version published by the Free Software1326-Foundation. If the Program does not specify a version number of the1327-GNU General Public License, you may choose any version ever published1328-by the Free Software Foundation.1329-1330- If the Program specifies that a proxy can decide which future1331-versions of the GNU General Public License can be used, that proxy's1332-public statement of acceptance of a version permanently authorizes you1333-to choose that version for the Program.1334-1335- Later license versions may give you additional or different1336-permissions. However, no additional obligations are imposed on any1337-author or copyright holder as a result of your choosing to follow a1338-later version.1339-1340- 15. Disclaimer of Warranty.1341-1342- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY1343-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT1344-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY1345-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,1346-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR1347-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM1348-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF1349-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.1350-1351- 16. Limitation of Liability.1352-1353- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING1354-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS1355-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY1356-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE1357-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF1358-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD1359-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),1360-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF1361-SUCH DAMAGES.1362-1363- 17. Interpretation of Sections 15 and 16.1364-1365- If the disclaimer of warranty and limitation of liability provided1366-above cannot be given local legal effect according to their terms,1367-reviewing courts shall apply local law that most closely approximates1368-an absolute waiver of all civil liability in connection with the1369-Program, unless a warranty or assumption of liability accompanies a1370-copy of the Program in return for a fee.1371-1372- END OF TERMS AND CONDITIONS1373-`,1374- }1375-67 // Licenses["apache20"] = License{68 // Name: "Apache 2.0",69 // PossibleMatches: []string{"apache", "apache20", ""},70 // Header: `5 unmodified lines