Files
ezbookkeeping/pkg/cli/base.go
T
2024-08-17 00:38:59 +08:00

14 lines
333 B
Go

package cli
import "github.com/mayswind/ezbookkeeping/pkg/settings"
// CliUsingConfig represents an cli that need to use config
type CliUsingConfig struct {
container *settings.ConfigContainer
}
// CurrentConfig returns the current config
func (l *CliUsingConfig) CurrentConfig() *settings.Config {
return l.container.Current
}