Source code for airflow_pydantic.utils.env
from .bash import in_bash
__all__ = ("in_bash", "in_conda", "in_virtualenv")
[docs]
def in_conda(env: str, command: str, tool: str = "micromamba") -> str:
return f"{tool} activate {env} && {command}"
[docs]
def in_virtualenv(env: str, command: str) -> str:
return f"source {env}/bin/activate && {command}"