adding latest

This commit is contained in:
2021-11-04 00:01:38 +00:00
parent 544c90eeed
commit 83db380fec
3 changed files with 40 additions and 9 deletions

View File

@@ -149,13 +149,12 @@ def _new_get_config_scope(scope: str) -> dict:
def _new_show_example(example: bool, config_scope: dict) -> None:
if example:
tembo.cli.logger.info(
"Example for 'tembo new %s': %s",
config_scope["name"],
config_scope["example"]
if isinstance(config_scope["example"], str)
else "No example in config.yml",
)
if isinstance(config_scope["example"], str):
cli_message(
f'Example for {config_scope["name"]}: {config_scope["example"]}'
)
else:
cli_message("No example in config.yml")
raise SystemExit(0)