You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zulip-cli: Replace harcoded zuliprc path with the one used in zulip_bots/run.py #696
Hi @andersk@rht, I have picked this up and opened PR #943 to resolve it.
Summary of implementation:
Abstracted zulip_env_vars_are_present() and exit_gracefully_if_zulip_config_is_missing() into the core zulip library (zulip/__init__.py), and updated zulip_bots to reuse them.
Refactored zulip-cli to accept --config-file / -c (defaulting to standard ~/.zuliprc / env vars) and moved client instantiation to lazy evaluation so that --help works without requiring existing credentials.
Added comprehensive unit tests in zulip/tests/test_cli.py and zulip/tests/test_config.py.
Activity
NaniToka commentedon Nov 12, 2026
Hi @andersk @rht, I have picked this up and opened PR #943 to resolve it.
Summary of implementation:
zulip_env_vars_are_present()andexit_gracefully_if_zulip_config_is_missing()into the corezuliplibrary (zulip/__init__.py), and updatedzulip_botsto reuse them.zulip-clito accept--config-file/-c(defaulting to standard~/.zuliprc/ env vars) and moved client instantiation to lazy evaluation so that--helpworks without requiring existing credentials.zulip/tests/test_cli.pyandzulip/tests/test_config.py.zulip: Abstract exit_gracefully_if_zulip_config_is_missing helper.
zulip: Abstract exit_gracefully_if_zulip_config_is_missing helper.