Rename Config.GetConfigFile() to ConfigFile(), see #50
This commit is contained in:
parent
c639a81c90
commit
37fe1d093e
4 changed files with 6 additions and 6 deletions
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ type Config interface {
|
|||
Db() *gorm.DB
|
||||
ClientConfig() frontend.Config
|
||||
|
||||
GetConfigFile() string
|
||||
ConfigFile() string
|
||||
GetAppName() string
|
||||
GetAppVersion() string
|
||||
GetAppCopyright() string
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue