llama-stack-mirror/src/llama_stack/cli/stack/utils.py
Charlie Doern 0424afb7ed feat: remove BuildConfig and its usage
Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-12-01 10:25:03 -05:00

24 lines
716 B
Python

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from enum import Enum
from pathlib import Path
TEMPLATES_PATH = Path(__file__).parent.parent.parent / "distributions"
class ImageType(Enum):
CONTAINER = "container"
VENV = "venv"
def print_subcommand_description(parser, subparsers):
"""Print descriptions of subcommands."""
description_text = ""
for name, subcommand in subparsers.choices.items():
description = subcommand.description
description_text += f" {name:<21} {description}\n"
parser.epilog = description_text