Skip to content

Commit 7f778b0

Browse files
author
Arnold Trakhtenberg
authored
check for yaml configuration when initializing cli options (#116)
* check for yaml configuration when initializing cli options * return err
1 parent 25a2922 commit 7f778b0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

internal/options/options.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ func Init() (err error, errCb func()) {
247247
}
248248
}
249249

250+
yamlOptions, err := Yaml()
251+
if err != nil {
252+
return err, nil
253+
}
254+
if yamlOptions != nil {
255+
Aliases = yamlOptions.Aliases
256+
}
257+
250258
return nil, flag.PrintDefaults
251259
}
252260

0 commit comments

Comments
 (0)