warrensbox / terraform-switcher

A command line tool to switch between different versions of terraform (install with homebrew and more)
https://tfswitch.warrensbox.com
MIT License
1.33k stars 133 forks source link

`log-level` TOML config doesn't work #421

Closed yermulnik closed 3 weeks ago

yermulnik commented 2 months ago

Ref:

> fgrep log ~/.tfswitch.toml
log-level = "DEBUG"

> tfswitch --version
18:55:57.119 INFO Reading configuration from "/home/giermulnik/.tfswitch.toml"
Version: v1.1.1

> tfswitch --version -g DEBUG
18:55:59.475 INFO [toml.go:15,getParamsTOML] Reading configuration from "/home/giermulnik/.tfswitch.toml"
Version: v1.1.1
yermulnik commented 1 month ago

429 will probably resolve this as the issue might be related to params from TOML file being overwritten by other means of params retrieval: https://github.com/warrensbox/terraform-switcher/blob/master/lib/param_parsing/parameters.go#L55-L79