CLI: add build templates support, move imports (#77)

* list templates implementation

* relative path

* finalize templates

* remove imports

* remove templates from name, name templates

* fix docker

* fix docker
This commit is contained in:
Xi Yan 2024-09-18 14:25:53 -07:00
parent d98ce34965
commit 8ad821a533
9 changed files with 130 additions and 37 deletions

View file

@ -6,10 +6,6 @@
import argparse
from pathlib import Path
import yaml
from llama_stack.cli.subcommand import Subcommand
from llama_stack.distribution.datatypes import * # noqa: F403
@ -46,7 +42,10 @@ class StackRun(Subcommand):
)
def _run_stack_run_cmd(self, args: argparse.Namespace) -> None:
from pathlib import Path
import pkg_resources
import yaml
from llama_stack.distribution.build import ImageType
from llama_stack.distribution.utils.config_dirs import BUILDS_BASE_DIR