diff --git a/internal/commands/config.go b/internal/commands/config.go index 265cc8c9f..3a7ff4531 100644 --- a/internal/commands/config.go +++ b/internal/commands/config.go @@ -19,7 +19,7 @@ func configAction(ctx *cli.Context) error { fmt.Printf("NAME VALUE\n") fmt.Printf("debug %t\n", conf.IsDebug()) - fmt.Printf("config-file %s\n", conf.GetConfigFile()) + fmt.Printf("config-file %s\n", conf.ConfigFile()) fmt.Printf("darktable-cli %s\n", conf.GetDarktableCli()) fmt.Printf("originals-path %s\n", conf.GetOriginalsPath()) fmt.Printf("import-path %s\n", conf.GetImportPath()) diff --git a/internal/context/config.go b/internal/context/config.go index 5394a6c93..6ba685e7d 100644 --- a/internal/context/config.go +++ b/internal/context/config.go @@ -316,8 +316,8 @@ func (c *Config) IsDebug() bool { return c.debug } -// GetConfigFile returns the config file name. -func (c *Config) GetConfigFile() string { +// ConfigFile returns the config file name. +func (c *Config) ConfigFile() string { return c.configFile } diff --git a/internal/photoprism/config.go b/internal/photoprism/config.go index a04172422..82669f617 100644 --- a/internal/photoprism/config.go +++ b/internal/photoprism/config.go @@ -15,7 +15,7 @@ type Config interface { Db() *gorm.DB ClientConfig() frontend.Config - GetConfigFile() string + ConfigFile() string GetAppName() string GetAppVersion() string GetAppCopyright() string diff --git a/internal/test/config.go b/internal/test/config.go index 40a78055e..d00d57104 100644 --- a/internal/test/config.go +++ b/internal/test/config.go @@ -173,8 +173,8 @@ func (c *Config) IsDebug() bool { return false } -// GetConfigFile returns the config file name. -func (c *Config) GetConfigFile() string { +// ConfigFile returns the config file name. +func (c *Config) ConfigFile() string { return ConfigFile }