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
It is annoying entering the context repeatedly. It would be great to have a default or to source from the environment but allow it to be overridden if the user specifies. Ie:
# in redbiom/__init__.pydefget_config():
...
ctx=os.environ.get('REDBIOM_CONTEXT')
# in redbiom/command/__init__.pydefget_context(user_specified):
ifuser_specifiedisNone:
importredbiomreturnredbiom.get_config()['ctx']
else:
returnuser_specified
...any redbiom/command/*.py method can then leverage get_context. Or, perhaps a click.option('--context', ...) callback so it's implicit.
The text was updated successfully, but these errors were encountered:
It is annoying entering the context repeatedly. It would be great to have a default or to source from the environment but allow it to be overridden if the user specifies. Ie:
...any
redbiom/command/*.py
method can then leverageget_context
. Or, perhaps aclick.option('--context', ...)
callback so it's implicit.The text was updated successfully, but these errors were encountered: