in composer_local_dev/environment.py [0:0]
def prepare_env_description(self, env_status: str) -> str:
"""Prepare description of the local composer environment."""
if env_status == constants.ContainerStatus.RUNNING:
port = self.get_host_port()
web_url = constants.WEBSERVER_URL_MESSAGE.format(port=port)
else:
web_url = ""
env_status = utils.wrap_status_in_color(env_status)
return constants.DESCRIBE_ENV_MESSAGE.format(
name=self.name,
state=env_status,
web_url=web_url,
image_version=self.image_version,
dags_path=self.dags_path,
gcloud_path=utils.resolve_gcloud_config_path(),
) + (constants.KUBECONFIG_PATH_MESSAGE.format(kube_config_path=utils.resolve_kube_config_path())
if utils.resolve_kube_config_path() else "no file") + constants.FINAL_ENV_MESSAGE