unioslo / zabbix-cli

Command-line interface for Zabbix
https://unioslo.github.io/zabbix-cli/
GNU General Public License v3.0
208 stars 104 forks source link

fix: Don't print message in `open` in headless mode #247

Closed pederhan closed 2 weeks ago

pederhan commented 2 weeks ago

Moves printing to the open_directory function. I would have preferred it to not be in control of printing, but the alternative is refactoring it to either returning a result type or raising exception when no display is supported. Both are overkill since we likely will never call the function outside of open.