Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-06-21 16:21:27 +03:00
parent d6a35346cc
commit ee09f57192
3 changed files with 8 additions and 5 deletions

View File

@@ -100,12 +100,15 @@ func (c *flagConfig) Init(opts ...config.Option) error {
return nil
}
func (c *flagConfig) Load(ctx context.Context) error {
func (c *flagConfig) Load(ctx context.Context, opts ...config.LoadOption) error {
options := config.NewLoadOptions(opts...)
_ = options
// TODO: allow merge, append and so
flag.Parse()
return nil
}
func (c *flagConfig) Save(ctx context.Context) error {
func (c *flagConfig) Save(ctx context.Context, opts ...config.SaveOption) error {
return nil
}