Mercurial > gemma
diff pkg/config/config.go @ 2181:bd09d6ad4c14
SOAP: Add validating parser (uses 'xmllint') for manual uploads.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 11 Feb 2019 15:56:59 +0100 |
parents | eadf84bb0e98 |
children | 0db742c7813d |
line wrap: on
line diff
--- a/pkg/config/config.go Mon Feb 11 13:04:36 2019 +0100 +++ b/pkg/config/config.go Mon Feb 11 15:56:59 2019 +0100 @@ -166,6 +166,9 @@ return externalURL } +// The root directories where to find schema files. +func SchemaDirs() string { return viper.GetString("schema-dirs") } + // RootCmd is cobra command to be bound th the cobra/viper infrastructure. var RootCmd = &cobra.Command{ Use: "gemma", @@ -246,6 +249,8 @@ str("tmp-dir", "", "Temp directory of gemma server.\n"+ "Defaults to system temp directory.") + + str("schema-dirs", ".", "Directories to find XSD schema files in (recursive).") } var (