llama-stack/llama_stack/distribution/utils
Charlie Doern 34e3faa4e8
feat: add --run to llama stack build (#1156)
# What does this PR do?

--run runs the stack that was just build using the same arguments during
the build process (image-name, type, etc)

This simplifies the workflow a lot and makes the UX better for most
local users trying to get started rather than having to match the flags
of the two commands (build and then run)

Also, moved `ImageType` to distribution.utils since there were circular
import errors with its old location

## Test Plan

tested locally using the following command: 

`llama stack build --run --template ollama --image-type venv`

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-02-23 22:06:09 -05:00
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
config_dirs.py build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
dynamic.py Add an introspection "Api.inspect" API 2024-10-02 15:41:14 -07:00
exec.py feat: add --run to llama stack build (#1156) 2025-02-23 22:06:09 -05:00
image_types.py feat: add --run to llama stack build (#1156) 2025-02-23 22:06:09 -05:00
model_utils.py Ensure model_local_dir does not mangle "C:\" on Windows 2024-11-24 14:18:59 -08:00
prompt_for_config.py build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
serialize.py API Updates (#73) 2024-09-17 19:51:35 -07:00