This commit is contained in:
Waylon S. Walker 2025-04-17 09:19:16 -05:00
parent 47e7f1cb5e
commit e8686a2c66
2 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,8 @@ import time
import typer
from typing import Any, List, Optional
import yaml
from krayt.__about__ import __version__
logging.basicConfig(level=logging.WARNING)
@ -384,7 +386,7 @@ def setup_environment():
def version_callback(value: bool):
if value:
typer.echo(f"Version: {KRAYT_VERSION}")
typer.echo(f"Version: {__version__}")
raise typer.Exit()
@ -698,7 +700,7 @@ def create(
@app.command()
def version():
"""Show the version of Krayt."""
typer.echo(f"Version: {KRAYT_VERSION}")
typer.echo(f"Version: {__version__}")
@app.command()

View file

@ -69,9 +69,8 @@ def install(
),
):
template_name = "install.sh"
breakpoint()
template = env.get_template(template_name)
rendered = template.render(packages=packages)
rendered = template.render(additional_packages=additional_packages)
print(rendered)