lint
This commit is contained in:
parent
47e7f1cb5e
commit
e8686a2c66
2 changed files with 5 additions and 4 deletions
|
|
@ -7,6 +7,8 @@ import time
|
||||||
import typer
|
import typer
|
||||||
from typing import Any, List, Optional
|
from typing import Any, List, Optional
|
||||||
import yaml
|
import yaml
|
||||||
|
from krayt.__about__ import __version__
|
||||||
|
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
|
|
||||||
|
|
@ -384,7 +386,7 @@ def setup_environment():
|
||||||
|
|
||||||
def version_callback(value: bool):
|
def version_callback(value: bool):
|
||||||
if value:
|
if value:
|
||||||
typer.echo(f"Version: {KRAYT_VERSION}")
|
typer.echo(f"Version: {__version__}")
|
||||||
raise typer.Exit()
|
raise typer.Exit()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -698,7 +700,7 @@ def create(
|
||||||
@app.command()
|
@app.command()
|
||||||
def version():
|
def version():
|
||||||
"""Show the version of Krayt."""
|
"""Show the version of Krayt."""
|
||||||
typer.echo(f"Version: {KRAYT_VERSION}")
|
typer.echo(f"Version: {__version__}")
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,8 @@ def install(
|
||||||
),
|
),
|
||||||
):
|
):
|
||||||
template_name = "install.sh"
|
template_name = "install.sh"
|
||||||
breakpoint()
|
|
||||||
template = env.get_template(template_name)
|
template = env.get_template(template_name)
|
||||||
rendered = template.render(packages=packages)
|
rendered = template.render(additional_packages=additional_packages)
|
||||||
print(rendered)
|
print(rendered)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue