mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
used viper to get license.txt
This commit is contained in:
parent
b787445794
commit
b112c230a5
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ func getLicense() License {
|
|||
// If user wants to have custom license, use that.
|
||||
if viper.IsSet("license.header") || viper.IsSet("license.text") {
|
||||
return License{Header: viper.GetString("license.header"),
|
||||
Text: "license.text"}
|
||||
Text: viper.GetString("license.text")}
|
||||
}
|
||||
|
||||
// If user wants to have built-in license, use that.
|
||||
|
|
Loading…
Reference in a new issue