llama-stack-mirror/llama_stack/cli
Akram Ben Aissi 1da7714bab Add version command with comprehensive unit tests and build integration
- Implement llama version command with table and JSON output formats
- Add build-time git information capture via scripts/generate_build_info.py
- Include comprehensive unit test suite (test_version.py, test_version_simple.py, test_version_integration.py)
- Add build system integration with custom setup.py command
- Update .gitignore to exclude generated build info file

Features:
- Display Llama Stack and client versions
- Show Python version and build information (git commit, date, branch, tag)
- Optional component/provider listing organized by API
- Support for both table and JSON output formats
- Build-time capture of git metadata for version tracking

Testing:
- 8 unit tests covering all functionality
- Integration tests for CLI execution
- Simple dependency-free validation tests
- Documentation for test suite and build process

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>
2025-06-26 12:53:28 +02:00
..
model chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
scripts API Updates (#73) 2024-09-17 19:51:35 -07:00
stack Add version command with comprehensive unit tests and build integration 2025-06-26 12:53:28 +02:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
download.py feat: drop python 3.10 support (#2469) 2025-06-19 12:07:14 +05:30
llama.py Add version command with comprehensive unit tests and build integration 2025-06-26 12:53:28 +02:00
subcommand.py API Updates (#73) 2024-09-17 19:51:35 -07:00
table.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
verify_download.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
version.py Add version command with comprehensive unit tests and build integration 2025-06-26 12:53:28 +02:00