mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Honor the copyright setting if specified.
This commit is contained in:
parent
a4e3f46f1e
commit
15eff95ef4
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ func getLicense() License {
|
||||||
}
|
}
|
||||||
|
|
||||||
func copyrightLine() string {
|
func copyrightLine() string {
|
||||||
|
copyright := viper.GetString("copyright")
|
||||||
|
|
||||||
|
if copyright != "" {
|
||||||
|
return copyright
|
||||||
|
}
|
||||||
|
|
||||||
author := viper.GetString("author")
|
author := viper.GetString("author")
|
||||||
|
|
||||||
year := viper.GetString("year") // For tests.
|
year := viper.GetString("year") // For tests.
|
||||||
|
|
Loading…
Add table
Reference in a new issue