mirror of
https://github.com/eosswedenorg/thalos
synced 2026-08-31 21:08:14 +02:00
nternal/config/cli.go: move overrideCliFlags() to cmd/thalos/server.go as its pretty specific code.
This commit is contained in:
parent
53baae8a7f
commit
7f1f186aa0
4 changed files with 15 additions and 24 deletions
|
|
@ -116,12 +116,5 @@ func (b *Builder) Build() (*Config, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Call custom handler.
|
||||
if b.flags != nil {
|
||||
if err := overrideCliFlags(&conf, b.flags); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return &conf, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue