From 15eff95ef43e6703c6b39b84224bd0ec78251362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Mun=CC=83oz?= Date: Wed, 6 Sep 2017 11:58:33 -0700 Subject: [PATCH] Honor the copyright setting if specified. --- cobra/cmd/licenses.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cobra/cmd/licenses.go b/cobra/cmd/licenses.go index a070134d..765f591f 100644 --- a/cobra/cmd/licenses.go +++ b/cobra/cmd/licenses.go @@ -76,6 +76,12 @@ func getLicense() License { } func copyrightLine() string { + copyright := viper.GetString("copyright") + + if copyright != "" { + return copyright + } + author := viper.GetString("author") year := viper.GetString("year") // For tests.