diff --git a/cobra/cmd/license_agpl.go b/cobra/cmd/license_agpl.go index 10308cc..2b8b5e7 100644 --- a/cobra/cmd/license_agpl.go +++ b/cobra/cmd/license_agpl.go @@ -4,21 +4,20 @@ func initAgpl() { Licenses["agpl"] = License{ Name: "GNU Affero General Public License", PossibleMatches: []string{"agpl", "affero gpl", "gnu agpl"}, - Header: ` -This file is part of {{ .appName }}. + Header: `{{.copyright}} -{{ .appName }} 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 the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -{{ .appName }} is distributed in the hope that it will be useful, +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License -along with {{ .appName }}. If not, see .`, +along with this program. If not, see .`, Text: ` GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 diff --git a/cobra/cmd/license_gpl_2.go b/cobra/cmd/license_gpl_2.go index 1105e35..27ef178 100644 --- a/cobra/cmd/license_gpl_2.go +++ b/cobra/cmd/license_gpl_2.go @@ -19,20 +19,20 @@ func initGpl2() { Licenses["gpl2"] = License{ Name: "GNU General Public License 2.0", PossibleMatches: []string{"gpl2", "gnu gpl2", "gplv2"}, - Header: `{{ .copyright }} + Header: `{{.copyright}} - {{ .appName }} 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 as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - {{ .appName }} is distributed in the hope that it will be useful, + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License - along with {{ .appName }}. If not, see .`, + along with this program. If not, see .`, Text: ` GNU GENERAL PUBLIC LICENSE Version 2, June 1991 diff --git a/cobra/cmd/license_gpl_3.go b/cobra/cmd/license_gpl_3.go index 009df9f..9d9260d 100644 --- a/cobra/cmd/license_gpl_3.go +++ b/cobra/cmd/license_gpl_3.go @@ -19,21 +19,20 @@ func initGpl3() { Licenses["gpl3"] = License{ Name: "GNU General Public License 3.0", PossibleMatches: []string{"gpl3", "gplv3", "gpl", "gnu gpl3", "gnu gpl"}, - Header: ` -This file is part of {{ .appName }}. + Header: `{{.copyright}} -{{ .appName }} 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 the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -{{ .appName }} is distributed in the hope that it will be useful, +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with {{ .appName }}. If not, see .`, +along with this program. If not, see .`, Text: ` GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/cobra/cmd/license_lgpl.go b/cobra/cmd/license_lgpl.go index 24f18f8..75fd043 100644 --- a/cobra/cmd/license_lgpl.go +++ b/cobra/cmd/license_lgpl.go @@ -4,21 +4,20 @@ func initLgpl() { Licenses["lgpl"] = License{ Name: "GNU Lesser General Public License", PossibleMatches: []string{"lgpl", "lesser gpl", "gnu lgpl"}, - Header: ` -This file is part of {{ .appName }}. + Header: `{{.copyright}} -{{ .appName }} 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 the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -{{ .appName }} is distributed in the hope that it will be useful, +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License -along with {{ .appName }}. If not, see .`, +along with this program. If not, see .`, Text: ` GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007