Rename Config.GetConfigFile() to ConfigFile(), see #50

This commit is contained in:
Michael Mayer 2018-12-21 02:43:44 +01:00
parent c639a81c90
commit 37fe1d093e
4 changed files with 6 additions and 6 deletions

View file

@ -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())

View file

@ -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
}

View file

@ -15,7 +15,7 @@ type Config interface {
Db() *gorm.DB
ClientConfig() frontend.Config
GetConfigFile() string
ConfigFile() string
GetAppName() string
GetAppVersion() string
GetAppCopyright() string

View file

@ -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
}