diff --git a/cmd/embedded.go b/cmd/embedded.go index c608667bf85ac..87f5f540b7a65 100644 --- a/cmd/embedded.go +++ b/cmd/embedded.go @@ -26,9 +26,9 @@ import ( "github.com/urfave/cli" ) -// Cmdembedded represents the available extract sub-command. +// CmdEmbedded represents the available extract sub-command. var ( - Cmdembedded = cli.Command{ + CmdEmbedded = cli.Command{ Name: "embedded", Usage: "Extract embedded resources", Description: "A command for extracting embedded resources, like templates and images", @@ -109,14 +109,13 @@ type asset struct { } func initEmbeddedExtractor(c *cli.Context) error { + // we need setting.CustomPath later, so we have to load settings + setting.LoadAllowEmpty() // Silence the console logger log.DelNamedLogger("console") log.DelNamedLogger(log.DEFAULT) - // Read configuration file - setting.LoadAllowEmpty() - pats, err := getPatterns(c.Args()) if err != nil { return err diff --git a/cmd/embedded_stub.go b/cmd/embedded_stub.go index 0e9e3e6ec3e14..89cd4334bd560 100644 --- a/cmd/embedded_stub.go +++ b/cmd/embedded_stub.go @@ -14,9 +14,9 @@ import ( "github.com/urfave/cli" ) -// Cmdembedded represents the available extract sub-command. +// CmdEmbedded represents the available extract sub-command. var ( - Cmdembedded = cli.Command{ + CmdEmbedded = cli.Command{ Name: "embedded", Usage: "Extract embedded resources", Description: "A command for extracting embedded resources, like templates and images", diff --git a/main.go b/main.go index 6cbdc244018b4..fab875576d027 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ arguments - which can alternatively be run by running the subcommand web.` cmd.CmdConvert, cmd.CmdDoctor, cmd.CmdManager, - cmd.Cmdembedded, + cmd.CmdEmbedded, cmd.CmdMigrateStorage, cmd.CmdDocs, cmd.CmdDumpRepository,