mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Add version modifiers to display build version, dependencies and providers:
- add the `llama stack version` command that accepts modifiers to get additional informations - without any argument it displays the build version as the llama --version command - -o table,json allows to change output format - --dependencies display the dependency list used to build llamastack - --build-info displays the build information - --all display both and build version Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>
This commit is contained in:
parent
ececc323d3
commit
efbe5fd477
6 changed files with 522 additions and 0 deletions
|
@ -10,6 +10,7 @@ from importlib.metadata import version
|
|||
from llama_stack.cli.stack.list_stacks import StackListBuilds
|
||||
from llama_stack.cli.stack.utils import print_subcommand_description
|
||||
from llama_stack.cli.subcommand import Subcommand
|
||||
from llama_stack.cli.version import VersionCommand
|
||||
|
||||
from .build import StackBuild
|
||||
from .list_apis import StackListApis
|
||||
|
@ -45,4 +46,5 @@ class StackParser(Subcommand):
|
|||
StackRun.create(subparsers)
|
||||
StackRemove.create(subparsers)
|
||||
StackListBuilds.create(subparsers)
|
||||
VersionCommand.create(subparsers)
|
||||
print_subcommand_description(self.parser, subparsers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue