forked from mirror/cobra
Allow specifying licenses using their SPDX identifier (#1159)
This commit is contained in:
parent
78969f9c81
commit
442031e4ff
|
@ -3,7 +3,7 @@ package cmd
|
||||||
func initAgpl() {
|
func initAgpl() {
|
||||||
Licenses["agpl"] = License{
|
Licenses["agpl"] = License{
|
||||||
Name: "GNU Affero General Public License",
|
Name: "GNU Affero General Public License",
|
||||||
PossibleMatches: []string{"agpl", "affero gpl", "gnu agpl"},
|
PossibleMatches: []string{"AGPL-3.0", "agpl", "affero gpl", "gnu agpl"},
|
||||||
Header: `
|
Header: `
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Affero General Public License as published by
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
|
|
@ -18,7 +18,7 @@ package cmd
|
||||||
func initApache2() {
|
func initApache2() {
|
||||||
Licenses["apache"] = License{
|
Licenses["apache"] = License{
|
||||||
Name: "Apache 2.0",
|
Name: "Apache 2.0",
|
||||||
PossibleMatches: []string{"apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"},
|
PossibleMatches: []string{"Apache-2.0", "apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"},
|
||||||
Header: `
|
Header: `
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -18,7 +18,7 @@ package cmd
|
||||||
func initBsdClause2() {
|
func initBsdClause2() {
|
||||||
Licenses["freebsd"] = License{
|
Licenses["freebsd"] = License{
|
||||||
Name: "Simplified BSD License",
|
Name: "Simplified BSD License",
|
||||||
PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2-clause bsd",
|
PossibleMatches: []string{"BSD-2-Clause", "freebsd", "simpbsd", "simple bsd", "2-clause bsd",
|
||||||
"2 clause bsd", "simplified bsd license"},
|
"2 clause bsd", "simplified bsd license"},
|
||||||
Header: `All rights reserved.
|
Header: `All rights reserved.
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ package cmd
|
||||||
func initBsdClause3() {
|
func initBsdClause3() {
|
||||||
Licenses["bsd"] = License{
|
Licenses["bsd"] = License{
|
||||||
Name: "NewBSD",
|
Name: "NewBSD",
|
||||||
PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd", "3-clause bsd"},
|
PossibleMatches: []string{"BSD-3-Clause", "bsd", "newbsd", "3 clause bsd", "3-clause bsd"},
|
||||||
Header: `All rights reserved.
|
Header: `All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -18,7 +18,7 @@ package cmd
|
||||||
func initGpl2() {
|
func initGpl2() {
|
||||||
Licenses["gpl2"] = License{
|
Licenses["gpl2"] = License{
|
||||||
Name: "GNU General Public License 2.0",
|
Name: "GNU General Public License 2.0",
|
||||||
PossibleMatches: []string{"gpl2", "gnu gpl2", "gplv2"},
|
PossibleMatches: []string{"GPL-2.0", "gpl2", "gnu gpl2", "gplv2"},
|
||||||
Header: `
|
Header: `
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
|
|
|
@ -18,7 +18,7 @@ package cmd
|
||||||
func initGpl3() {
|
func initGpl3() {
|
||||||
Licenses["gpl3"] = License{
|
Licenses["gpl3"] = License{
|
||||||
Name: "GNU General Public License 3.0",
|
Name: "GNU General Public License 3.0",
|
||||||
PossibleMatches: []string{"gpl3", "gplv3", "gpl", "gnu gpl3", "gnu gpl"},
|
PossibleMatches: []string{"GPL-3.0", "gpl3", "gplv3", "gpl", "gnu gpl3", "gnu gpl"},
|
||||||
Header: `
|
Header: `
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -3,7 +3,7 @@ package cmd
|
||||||
func initLgpl() {
|
func initLgpl() {
|
||||||
Licenses["lgpl"] = License{
|
Licenses["lgpl"] = License{
|
||||||
Name: "GNU Lesser General Public License",
|
Name: "GNU Lesser General Public License",
|
||||||
PossibleMatches: []string{"lgpl", "lesser gpl", "gnu lgpl"},
|
PossibleMatches: []string{"LGPL-3.0", "lgpl", "lesser gpl", "gnu lgpl"},
|
||||||
Header: `
|
Header: `
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
|
|
@ -18,7 +18,7 @@ package cmd
|
||||||
func initMit() {
|
func initMit() {
|
||||||
Licenses["mit"] = License{
|
Licenses["mit"] = License{
|
||||||
Name: "MIT License",
|
Name: "MIT License",
|
||||||
PossibleMatches: []string{"mit"},
|
PossibleMatches: []string{"MIT", "mit"},
|
||||||
Header: `
|
Header: `
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
Loading…
Reference in New Issue