Skip to content
Myr

Add built-in licenses info to README

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 164be37 · Browse files · 3 files+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−2 removed

  • other:+5 added−2 removed

3 files+5 added−2 removed

modified:cobra/cmd/license_gpl_2.go+1 added-1 removed
16 unmodified lines
1718func initGpl2() {19 Licenses["gpl2"] = License{20 Name: "GNU General Public License 2.0",21 PossibleMatches: []string{"gpl2", "gnu gpl2"},21 PossibleMatches: []string{"gpl2", "gnu gpl2", "gplv2"},22 Header: `{{ .copyright }}2324 {{ .appName }} is free software; you can redistribute it and/or25 modify it under the terms of the GNU General Public License
293 unmodified lines
modified:cobra/cmd/license_gpl_3.go+1 added-1 removed
16 unmodified lines
1718func initGpl3() {19 Licenses["gpl3"] = License{20 Name: "GNU General Public License 3.0",21 PossibleMatches: []string{"gpl3", "gpl", "gnu gpl3", "gnu gpl"},21 PossibleMatches: []string{"gpl3", "gplv3", "gpl", "gnu gpl3", "gnu gpl"},22 Header: `23This file is part of {{ .appName }}.2425{{ .appName }} is free software: you can redistribute it and/or modify
635 unmodified lines
modified:README.md+3 added
258 unmodified lines
259 My license is my best friend. It is my life. I must master it as I must260 master my life.261```262263You can also use built-in licenses. For example, **GPLv2**, **GPLv3**, **LGPL**,264**AGPL**, **MIT**, **2-Clause BSD** or **3-Clause BSD**.265266## Manually implementing Cobra267268To manually implement cobra you need to create a bare main.go file and a RootCmd file.269You will optionally provide additional commands as you see fit.
644 unmodified lines