mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
@ -278,7 +278,9 @@ func init() {
|
|||||||
|
|
||||||
// InitializeConfig initializes a config file with sensible default configuration flags.
|
// InitializeConfig initializes a config file with sensible default configuration flags.
|
||||||
func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
||||||
hugolib.LoadGlobalConfig(source, cfgFile)
|
if err := hugolib.LoadGlobalConfig(source, cfgFile); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
for _, cmdV := range append([]*cobra.Command{hugoCmdV}, subCmdVs...) {
|
for _, cmdV := range append([]*cobra.Command{hugoCmdV}, subCmdVs...) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user